From: melinath Date: Tue, 17 Aug 2010 17:09:37 +0000 (-0400) Subject: Added collapse classes to attribute and relationship inlines on entities. X-Git-Tag: philo-0.9~35^2~3 X-Git-Url: http://git.ithinksw.org/philo.git/commitdiff_plain/855ec6e1d29382dcbbfa63aece9e3b127b8ecf11?ds=inline;hp=--cc Added collapse classes to attribute and relationship inlines on entities. --- 855ec6e1d29382dcbbfa63aece9e3b127b8ecf11 diff --git a/admin/base.py b/admin/base.py index 457db17..f8485d2 100644 --- a/admin/base.py +++ b/admin/base.py @@ -13,6 +13,7 @@ class AttributeInline(generic.GenericTabularInline): extra = 1 template = 'admin/philo/edit_inline/tabular_collapse.html' allow_add = True + classes = COLLAPSE_CLASSES class RelationshipInline(generic.GenericTabularInline): @@ -22,6 +23,7 @@ class RelationshipInline(generic.GenericTabularInline): extra = 1 template = 'admin/philo/edit_inline/tabular_collapse.html' allow_add = True + classes = COLLAPSE_CLASSES class EntityAdmin(admin.ModelAdmin):