Continual of django-ltree
Project description
django-ltree
A tree extension implementation to support hierarchical tree-like data in Django models,
using the native Postgres extension ltree
.
Postgresql has already a optimized and very useful tree implementation for data. The extension is ltree
This fork contains is a continuation of the work done by mariocesar
on django-ltree
and merges the work done by simkimsia
on greendeploy-django-ltree
Install
pip install django-ltree-2
Then add django_ltree
to INSTALLED_APPS
in your Django project settings.
INSTALLED_APPS = [
...,
'django_ltree',
...
]
Then use it like this:
from django_ltree.models import TreeModel
class CustomTree(TreeModel):
...
Requires
- Django 3.2 or superior
- Python 3.9 or higher
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django_ltree_2-0.1.8.tar.gz
(6.6 kB
view hashes)
Built Distribution
Close
Hashes for django_ltree_2-0.1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf66b701530b2431b805f25fed9e0dd65008999aa0101df858aa186e397d2c87 |
|
MD5 | 033a0bd06036f81fc59c89add8ad4e7c |
|
BLAKE2b-256 | 1afd1b8afbc50b2f949c933055d553a9f58f23ebbef73682a8ef31cd2d15ded3 |