File tree 2 files changed +9
-15
lines changed
2 files changed +9
-15
lines changed Original file line number Diff line number Diff line change @@ -28,29 +28,23 @@ INSTALLED_APPS = [
28
28
]
29
29
```
30
30
31
- And make sure to run ` django_ltree ` migrations before you added the ` PathField `
31
+ Then use it like this:
32
32
33
- ```
34
- python manage.py migrate django_ltree
35
- ```
33
+ ``` python
36
34
37
- ` django_ltree ` migrations will install the ` ltree ` extension if not exist.
35
+ from django_ltree.models import TreeModel
38
36
39
- You can alternatively specify the ` django_ltree ` dependency in the migrations of
40
- your applications that requires ` PathField ` , and run migrations smoothly.
41
37
42
- ``` python
43
- class Migration (migrations .Migration ):
44
- dependencies = [
45
- (' django_ltree' , ' __latest__' ),
46
- ]
38
+ class CustomTree (TreeModel ):
39
+ ...
40
+
47
41
```
48
42
49
43
## Requires
50
44
51
45
- Django 5.0 or superior
52
46
- Python 3.10 or higher
53
47
54
- ## Testing
48
+ ## Roadmaps
55
49
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 1
1
[tool .poetry ]
2
2
name = " django-ltree-2"
3
- version = " 0.1.3 "
3
+ version = " 0.1.4 "
4
4
description = " Continual of django-ltree"
5
5
authors = [
" baseplate-admin <[email protected] >" ]
6
6
license = " MIT"
You can’t perform that action at this time.
0 commit comments