from django contrib flatpages models import FlatPage from django contr

1
2
3
4
5
6
7
8
9
from django.contrib.flatpages.models import FlatPage
from django.contrib.flatpages.admin import FlatPageAdmin
from tagging.fields import TagField
FlatPage.tags = TagField()
FlatPageAdmin.fieldsets = (
(None, {'fields': ('url', 'title', 'content', 'tags', 'sites')}),
('Advanced options', {'classes': ('collapse',), 'fields': ('enable_comments', 'registration_required', 'template_name')}),
)