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
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 4.2 or superior
- Python 3.10 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.7.tar.gz
(6.3 kB
view hashes)
Built Distribution
Close
Hashes for django_ltree_2-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e91401268bd3fdb3a1c82190c1e3ac5ae51003e9591c4d3e07b1fb3ab6aa738a |
|
MD5 | b608c17c802831e6d45d5b8987e7fafd |
|
BLAKE2b-256 | 4c6910ee9ac393b9ecd344cbbd439bb850eb817b2026f08559667712ec1c883a |