Django Admin addon to navigate through hierarchies
Project description
https://github.com/idlesign/django-admirarchy
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 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
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-admirarchy-1.2.2.tar.gz
(16.4 kB
view details)
Built Distribution
File details
Details for the file django-admirarchy-1.2.2.tar.gz
.
File metadata
- Download URL: django-admirarchy-1.2.2.tar.gz
- Upload date:
- Size: 16.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/2.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c58976f56f75e6a9f90e82d08bc05e9c9cc5743517c9ad3b772ce894b7e709f2 |
|
MD5 | 85c90281b64b1eaacb10164b2ab84846 |
|
BLAKE2b-256 | d8a9e212518bbd27281b9ef14c8c0d67a7634d460c91455b601d2d7e68bacbbb |
File details
Details for the file django_admirarchy-1.2.2-py2.py3-none-any.whl
.
File metadata
- Download URL: django_admirarchy-1.2.2-py2.py3-none-any.whl
- Upload date:
- Size: 14.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/2.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11fcc7772be754c098e1ac8a0beddda717e146f5048fe7aa3af7b7a0143298e7 |
|
MD5 | 6b2df008d3332cdd4b5cfa2f9994cf56 |
|
BLAKE2b-256 | 96d964723173442b19ad2ea9bdbf753346355ea82e084f55362cf1a0cad56787 |