I'm trying to customize the admin interface so that each inline form
for a given InlineModelAdmin  is displayed differently, based on the
instance to be edited in the form. For example, one may want to
display each BookInline form under the AuthorAdmin with a different
background color, based on the publication date of the respective Book
instance.

After hours of digging in the admin sources, the only solution I could
find was to copy over the admin/edit_inline/stacked.html template to
my templates and add a single line that adds conditionally a CSS class
to the inline admin form. Is there another way to do it without
replacing the admin template ?

George
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to