Django admin customizing interface
Project description
Django admin customizing interface
Features
Multiple admin instances for the same model
Customization of:
list_display
list_filter
raw_id_fields
search_fields
TODO
actions configurator
base admin class support
Requirements
Django (versions tbd - maybe >= 1.3)
Installation guide
Install from pypi, with pip:
pip install django-admin-customizer
Or with setuptools:
easy_install django-admin-customizer
Add admin_customizer to INSTALLED_APPS:
INSTALLED_APPS += ("admin_customizer", )
After that you need to run:
manage.py syncdb
Or if you use south:
manage.py syncdb --migrate
You need to update admin_customizer’s models to get it working, initially and after each model change with:
manage.py refresh_available_fields
Note:
If you delete models the registered admins will be deleted for them.
If you delete fields from models the registered admins will have them removed after you run refresh_available_fields.
django-admin-customizer has static files for widgets in the edit interface. If you use staticfiles just run:
manage.py collectstatic
If you do not use django.contrib.staticfiles you must manually symlink the site-packages/admin_customizer/static/admin_customizer dir to <your media root>/admin_customizer.
Making extra actions available
TODO
Settings
ADMIN_CUSTOMIZER_MAX_FIELD_DEPTH - depth to look for relations when inspecting models.
Middleware
To enable urlpattern reloading add 'admin_customizer.middleware.URLResolverReloadMiddleware' to MIDDLEWARE_CLASSES.
Warning!
You must have working django cache for this to work properly ! See django’s cache documentation on this.
If you do not enable this you will have to restart the webserver after every AdminSite or RegisteredModel change !
Screenshots
Edit page:
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
Hashes for django-admin-customizer-0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a30d793d8c55ed4b3f3cc3545c242a17d8e8c701f93b2eb6f17d23022bd2869 |
|
MD5 | 7d3134d578c6e3179d6e191f9bdbb84b |
|
BLAKE2b-256 | 87f367355627712a4b997723973c2510b84c03575d0fcb8e6442fca71fcf9b4a |