Skip to content

Commit

Permalink
Release 0.1.4
Browse files Browse the repository at this point in the history
Update pyproject.toml
  • Loading branch information
baseplate-admin committed Feb 23, 2024
1 parent 871f742 commit 6b17f66
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
22 changes: 8 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,29 +28,23 @@ INSTALLED_APPS = [
]
```

And make sure to run `django_ltree` migrations before you added the `PathField`
Then use it like this:

```
python manage.py migrate django_ltree
```
```python

`django_ltree` migrations will install the `ltree` extension if not exist.
from django_ltree.models import TreeModel

You can alternatively specify the `django_ltree` dependency in the migrations of
your applications that requires `PathField`, and run migrations smoothly.

```python
class Migration(migrations.Migration):
dependencies = [
('django_ltree', '__latest__'),
]
class CustomTree(TreeModel):
...

```

## Requires

- Django 5.0 or superior
- Python 3.10 or higher

## Testing
## Roadmaps

Make sure you have Postgres installed. Then simply run `tox` in the root directory of the project.
- 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)
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "django-ltree-2"
version = "0.1.3"
version = "0.1.4"
description = "Continual of django-ltree"
authors = ["baseplate-admin <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 6b17f66

Please sign in to comment.