Skip to content

Commit 6b17f66

Browse files
Release 0.1.4
Update pyproject.toml
1 parent 871f742 commit 6b17f66

File tree

2 files changed

+9
-15
lines changed

2 files changed

+9
-15
lines changed

README.md

+8-14
Original file line numberDiff line numberDiff 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)

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "django-ltree-2"
3-
version = "0.1.3"
3+
version = "0.1.4"
44
description = "Continual of django-ltree"
55
authors = ["baseplate-admin <[email protected]>"]
66
license = "MIT"

0 commit comments

Comments
 (0)