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 %)

Documentation

http://django-admirarchy.readthedocs.org/

Project details


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-0.2.3.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_admirarchy-0.2.3-py2.py3-none-any.whl (14.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file django-admirarchy-0.2.3.tar.gz.

File metadata

  • Download URL: django-admirarchy-0.2.3.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/2.7

File hashes

Hashes for django-admirarchy-0.2.3.tar.gz
Algorithm Hash digest
SHA256 c6a774afef3f4b17f4ea435d1d7c3b01cfb11cfe0856eeb481fdbde458a95bd1
MD5 2d0716b9446e6a98171a71ef753f2cfa
BLAKE2b-256 14ebb0f76ed60b3a5e352da51b0366d113f3e95816e4125c6680e0ac003c21ed

See more details on using hashes here.

File details

Details for the file django_admirarchy-0.2.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_admirarchy-0.2.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 58649a9fdb5f7c677cbf0174b7fb6c59c730800d36d727a924b3312678016c63
MD5 d70145df251ebe10bfc02b7f0091ac9c
BLAKE2b-256 6f641b0bd1ad2c53dd63c73614e107e3492509ae50af4441f524f467eda8823f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page