summaryrefslogtreecommitdiff
path: root/django/contrib/flatpages/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/contrib/flatpages/models.py')
-rw-r--r--django/contrib/flatpages/models.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/django/contrib/flatpages/models.py b/django/contrib/flatpages/models.py
index d61e9a3b1c..466425cb46 100644
--- a/django/contrib/flatpages/models.py
+++ b/django/contrib/flatpages/models.py
@@ -20,16 +20,7 @@ class FlatPage(models.Model):
verbose_name = _('flat page')
verbose_name_plural = _('flat pages')
ordering = ('url',)
-
- class Admin:
- fields = (
- (None, {'fields': ('url', 'title', 'content', 'sites')}),
- (_('Advanced options'), {'classes': 'collapse', 'fields': ('enable_comments', 'registration_required', 'template_name')}),
- )
- list_display = ('url', 'title')
- list_filter = ('sites', 'enable_comments', 'registration_required')
- search_fields = ('url', 'title')
-
+
def __unicode__(self):
return u"%s -- %s" % (self.url, self.title)