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',)
allow_add = True
classes = COLLAPSE_CLASSES
form = AttributeForm
+ formset = AttributeInlineFormSet
exclude = ['value_object_id']
class TagAdmin(admin.ModelAdmin):
list_display = ('name', 'slug')
prepopulated_fields = {"slug": ("name",)}
+ search_fields = ["name"]
admin.site.register(Tag, TagAdmin)
\ No newline at end of file