Skip to main content

Django Admin addon to navigate through hierarchies

Project description

https://github.com/idlesign/django-admirarchy

release lic ci coverage health

Description

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.

# admin.py of your application
from django.contrib import admin

from .models import MyModel  # Let's say this model represents a hierarchy.
from admirarchy.toolbox import HierarchicalModelAdmin


# Inherit from HierarchicalModelAdmin instead of admin.ModelAdmin
class MyModelAdmin(HierarchicalModelAdmin):

    hierarchy = True  # This enables hierarchy handling.

admin.site.register(MyModel, MyModelAdmin)

Done. Go navigate %)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django_admirarchy-0.2.4-py2.py3-none-any.whl (14.3 kB) Copy SHA256 hash SHA256 Wheel 2.7 Sep 22, 2018
django-admirarchy-0.2.4.tar.gz (16.0 kB) Copy SHA256 hash SHA256 Source None Sep 22, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page