Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/idlesign/django-admirarchy
Django Admin addon to navigate through hierarchies.
https://github.com/idlesign/django-admirarchy
admin django hierarchy navigation-drawer python
Last synced: 11 days ago
JSON representation
Django Admin addon to navigate through hierarchies.
- Host: GitHub
- URL: https://github.com/idlesign/django-admirarchy
- Owner: idlesign
- License: bsd-3-clause
- Created: 2014-08-27T15:26:06.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2022-06-26T12:23:18.000Z (over 2 years ago)
- Last Synced: 2024-10-04T12:53:53.236Z (about 1 month ago)
- Topics: admin, django, hierarchy, navigation-drawer, python
- Language: Python
- Homepage: https://github.com/idlesign/django-admirarchy
- Size: 99.6 KB
- Stars: 26
- Watchers: 7
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG
- Contributing: CONTRIBUTING
- License: LICENSE
Awesome Lists containing this project
README
django-admirarchy
=================
https://github.com/idlesign/django-admirarchy|release| |lic| |coverage|
.. |release| image:: https://img.shields.io/pypi/v/django-admirarchy.svg
:target: https://pypi.python.org/pypi/django-admirarchy.. |lic| image:: https://img.shields.io/pypi/l/django-admirarchy.svg
:target: https://pypi.python.org/pypi/django-admirarchy.. |coverage| image:: https://img.shields.io/coveralls/idlesign/django-admirarchy/master.svg
:target: https://coveralls.io/r/idlesign/django-admirarchyDescription
-----------*Django Admin addon to navigate through hierarchies.*
Have you ever wanted Django Admin to be able to navigate through hierarchies?
Without existing models modifications? Yeah!
Admirarchy does it in an old-school way, just like Norton Commander and Co - one level at a time.
Hierarchies described as adjacency lists and nested sets are supported.
.. code-block:: python
# admin.py of your application
from django.contrib import adminfrom admirarchy.toolbox import HierarchicalModelAdmin
from .models import MyModel # Let's say this model represents a hierarchy.
# Inherit from HierarchicalModelAdmin instead of admin.ModelAdmin
@admin.register(MyModel)
class MyModelAdmin(HierarchicalModelAdmin):hierarchy = True # This enables hierarchy handling.
Done. Go navigate %)
Documentation
-------------http://django-admirarchy.readthedocs.org/