Skip to main content

Modifies the stock Django-Administration interface to fit our ideas a little bit better.

Project description

Modifies the stock Django-Administration interface to fit our ideas a little bit better.

Dashboard and global navigation extension

Allows grouping of apps on the dashboard and offers the same view on each admin page when clicking the main title of the Django admin interface.

App label entries without a matching app are ignored. A configuration example follows:

from fhadmin import FHADMIN_GROUPS_REMAINING
_ = lambda x: x

FHADMIN_GROUPS = [
    (_('Main content'), ('page', 'medialibrary', 'blog')),
    (_('Modules'), ('links', FHADMIN_GROUPS_REMAINING)),
    (_('Preferences'), ('auth', 'rosetta', 'external', 'sites')),
]

The extension is activated by inserting fhadmin before django.contrib.admin in INSTALLED_APPS.

Merging apps

Merging apps is possible as follows:

FHADMIN_MERGE = {"accounts": "auth"}

This example moves all models from the accounts app to the auth heading. Both app labels have to exist. Note that this only changes the start page of the Django admin panel and of course the global navigation. Note that strange things (or worse) may happen if the user has access to only one or the other app.

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_fhadmin-2.2.2.tar.gz (6.8 kB view hashes)

Uploaded Source

Built Distribution

django_fhadmin-2.2.2-py3-none-any.whl (8.6 kB view hashes)

Uploaded Python 3

Supported by

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