git.ithinksw.org
/
philo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Making Attribute and Relationship inlines collapsible with custom template.
[philo.git]
/
admin.py
diff --git
a/admin.py
b/admin.py
index
e9a59ad
..
1a9125e
100644
(file)
--- a/
admin.py
+++ b/
admin.py
@@
-15,7
+15,7
@@
class AttributeInline(generic.GenericTabularInline):
ct_fk_field = 'entity_object_id'
model = Attribute
extra = 1
ct_fk_field = 'entity_object_id'
model = Attribute
extra = 1
- classes = ('collapse-closed',)
+ template = 'admin/philo/edit_inline/tabular_collapse.html'
allow_add = True
allow_add = True
@@
-24,7
+24,7
@@
class RelationshipInline(generic.GenericTabularInline):
ct_fk_field = 'entity_object_id'
model = Relationship
extra = 1
ct_fk_field = 'entity_object_id'
model = Relationship
extra = 1
- classes = ('collapse-closed',)
+ template = 'admin/philo/edit_inline/tabular_collapse.html'
allow_add = True
allow_add = True