File tree Expand file tree Collapse file tree 2 files changed +9
-15
lines changed Expand file tree Collapse file tree 2 files changed +9
-15
lines changed Original file line number Diff line number Diff line change @@ -28,29 +28,23 @@ INSTALLED_APPS = [
2828]
2929``` 
3030
31- And make sure to run  ` django_ltree `  migrations before you added the  ` PathField ` 
31+ Then use it like this: 
3232
33- ``` 
34- python manage.py migrate django_ltree 
35- ``` 
33+ ``` python 
3634
37- ` django_ltree `  migrations will install the  ` ltree `  extension if not exist. 
35+ from   django_ltree.models  import  TreeModel 
3836
39- You can alternatively specify the ` django_ltree `  dependency in the migrations of
40- your applications that requires ` PathField ` , and run migrations smoothly.
4137
42- ``` python 
43- class  Migration (migrations .Migration ):
44-     dependencies =  [
45-             (' django_ltree'  , ' __latest__'  ),
46-     ]
38+ class  CustomTree (TreeModel ):
39+     ... 
40+ 
4741``` 
4842
4943## Requires  
5044
5145-    Django 5.0 or superior
5246-    Python 3.10 or higher
5347
54- ## Testing  
48+ ## Roadmaps  
5549
56- Make sure you have Postgres installed. Then simply run  ` tox `  in the root directory of  the project. 
50+ -    Write documentation on how to use this repository. (If you need a quick way to check things, please check  the ` tests/test_model.py `  file) 
Original file line number Diff line number Diff line change 11[tool .poetry ]
22name  = " django-ltree-2" 
3- version  = " 0.1.3 " 
3+ version  = " 0.1.4 " 
44description  = " Continual of django-ltree" 
55authors  = [
" baseplate-admin <[email protected] >" ]
66license  = " MIT" 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments