From 6b17f66d701153388a48761f89d6577f6930aa89 Mon Sep 17 00:00:00 2001 From: baseplate-admin <61817579+baseplate-admin@users.noreply.github.com> Date: Fri, 23 Feb 2024 20:16:23 +0600 Subject: [PATCH] Release 0.1.4 Update pyproject.toml --- README.md | 22 ++++++++-------------- pyproject.toml | 2 +- 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index dba76b9..91772f1 100644 --- a/README.md +++ b/README.md @@ -28,22 +28,16 @@ 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 @@ -51,6 +45,6 @@ class Migration(migrations.Migration): - 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) diff --git a/pyproject.toml b/pyproject.toml index 468eed3..1b0de45 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 <61817579+baseplate-admin@users.noreply.github.com>"] license = "MIT"