Commit Graph

3 Commits (51b789cdc630d2ea60f79a22a8c74c6b888b9992)

Author SHA1 Message Date
Diederik van der Boor 5d65bf4bbc Added polymorphic admin interface
Extracted from django-fluent-pages, ready for other apps too.
The polymorphic admin is implemented via a parent admin for the base
model, and separate admin interfaces for the child models.

The parent model needs to inherit PolymorphicParentModelAdmin,
and override `get_admin_for_model()` and `get_child_model_classes()`
to find the child admin interfaces.

The derived models have their own `ModelAdmin` class, which inherits
from `PolymorphicChildModelAdmin`. The parent admin redirects it's
change and delete views to the child admin.

By adding `polymorphic` to the INSTALLED_APPS, the breadcrumbs will be
fixed as well, to remain unchanged between the child applications.
2012-07-05 23:16:46 +02:00
Christopher Glass a5a517532f Added Germán to AUTHORS.rst
Thanks a lot for your contribution
2011-12-20 19:01:13 +00:00
Christopher Glass 741abf4228 Cleanup AUTHORS.rst 2011-12-20 18:56:37 +00:00