Note that this apps works with django >= 1.4 only.
'admin_enhancer' to your
INSTALLED_APPS to avoid getting
Make sure to mix
EnhancedModelAdminMixin when dealing with
django.contrib.admin.ModelAdmin subclasses and
EnhancedAdminMixin when dealing with
django.contrib.admin.InlineModelAdmin at both ends of the relationship.
The mixins are located at
If edition and deletion controls appears but the popup is not closed nor is the
select box updated your
ModelAdmin subclass referenced by the field in
question is probably not mixed with
For some examples take a look here.
Django CMS support
Django CMS (https://www.django-cms.org/) defines a plugin system to create pluggable applications; its plugin system relies on standard Django admin framework so it's easy to enhance plugins using this project.
admin_enhancer support to your own plugins just add
admin_enhancer.EnhancedAdminMixin to plugin class definition::
... from admin_enhancer.admin import EnhancedAdminMixin class MyOwnPlugin(EnhancedAdminMixin, CMSPluginBase): name = "whatever" ... plugin_pool.register_plugin(MyOwnPlugin)
To enhance third party plugins, unregister original plugin and extend it with your own base class::
... from other.app.cms_plugins import ThirdPartyPlugin from admin_enhancer.admin import EnhancedAdminMixin class EnhancedThirPartyPlugin(EnhancedAdminMixin, ThirdPartyPlugin): pass ... plugin_pool.unregister_plugin(ThirdPartyPlugin) plugin_pool.register_plugin(EnhancedThirPartyPlugin)
Page admin support
Django CMS defines a ModelAdmin for its
admin_enhancer.contrib.djangocms defines a new
Page to enhance it. To install it add
INSTALLED_APPS, after any
Django Filer support
django-filer (https://github.com/stefanfoulis/django-filer) has its own enhanced widget which conflicts with
django-admin-enhancer; to enhance filer-based applications, use
enhance_exclude attribute on your ModelAdmin to exclude filer-based fields from enhancement while allowing other fields to be enriched.
cmsplugin_filer (https://github.com/stefanfoulis/cmsplugin-filer) can be extended to support
django-admin-enhancer like any other django CMS plugin; for better support
admin_enhancer.contrib.filer defines a new
ThumbnailOption class. To install it add