mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Fixed #7329 -- Added list_display Admin options to FlatPage and Redirect models. Also changed list_filter for FlatPage. Thanks for the patch, benspaulding
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7651 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
16482911fd
commit
cc64abfc1d
@ -26,7 +26,8 @@ class FlatPage(models.Model):
|
||||
(None, {'fields': ('url', 'title', 'content', 'sites')}),
|
||||
(_('Advanced options'), {'classes': 'collapse', 'fields': ('enable_comments', 'registration_required', 'template_name')}),
|
||||
)
|
||||
list_filter = ('sites',)
|
||||
list_display = ('url', 'title')
|
||||
list_filter = ('sites', 'enable_comments', 'registration_required')
|
||||
search_fields = ('url', 'title')
|
||||
|
||||
def __unicode__(self):
|
||||
|
@ -17,6 +17,7 @@ class Redirect(models.Model):
|
||||
ordering = ('old_path',)
|
||||
|
||||
class Admin:
|
||||
list_display = ('old_path', 'new_path')
|
||||
list_filter = ('site',)
|
||||
search_fields = ('old_path', 'new_path')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user