{"repo":"fabiocaccamo/django-treenode","free":true,"listed":false,"github":"https://github.com/fabiocaccamo/django-treenode","clone":"git clone https://github.com/fabiocaccamo/django-treenode.git","description":":deciduous_tree: probably the best abstract model/admin for your tree based stuff.","language":"Python","stars":803,"topics":["django","tree","node","categories","abstract","model","python","category","trees","nodes"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"django-treenode Probably the best abstract model / admin for your tree based stuff. Features - Fast - get ancestors , children , descendants , parent , root , siblings , tree with no queries - Synced - in-memory model instances are automatically updated - Compatibility - you can easily add treenode to existing projects - No dependencies - Easy configuration - just extend the abstract model / model-admin - Admin integration - great tree visualization: accordion , breadcrumbs or indentation indentation (default) breadcrumbs accordion --- --- --- ![treenode-admin-display-mode-indentation][treenode-admin-display-mode-indentation] ![treenode-admin-display-mode-breadcrumbs][treenode-admin-display-mode-breadcrumbs] ![treenode-admin-display-mode-accordion][treenode-admin-display-mode-accordion] Installation - Run pip install django-treenode - Add treenode to settings.INSTALLED APPS - Make your model inherit from treenode.models.TreeNodeModel (described below) - Make your model-admin inherit from treenode.admin.TreeNodeModelAdmin (described below) - Run python manage.py makemigrations and python manage.py migrate Configuration models.py Make your model class inherit from treenode.models.TreeNodeModel : The TreeNodeModel abstract class adds many fields (prefixed with tn to prevent direct access) and public methods to your models. :warning: If you are extending a model that already has some fields, please ensure that your model existing fields names don't clash with TreeNodeModel public","default_branch":null,"files":null,"tree":[],"storefront":"/r/fabiocaccamo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fabiocaccamo/django-treenode/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}