X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/98bd3a178f3e62e5591e809ac61e07a5bf37c292..5a45551fd535081084355dba85642ada72b71750:/admin/base.py diff --git a/admin/base.py b/admin/base.py index a39756a..f4a5f2f 100644 --- a/admin/base.py +++ b/admin/base.py @@ -1,7 +1,7 @@ from django.contrib import admin from django.contrib.contenttypes import generic from philo.models import Tag, Attribute -from philo.forms import AttributeForm +from philo.forms import AttributeForm, AttributeInlineFormSet COLLAPSE_CLASSES = ('collapse', 'collapse-closed', 'closed',) @@ -16,6 +16,7 @@ class AttributeInline(generic.GenericTabularInline): allow_add = True classes = COLLAPSE_CLASSES form = AttributeForm + formset = AttributeInlineFormSet exclude = ['value_object_id']