diff options
author | Dan McGee <dan@archlinux.org> | 2012-11-28 09:28:28 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-11-28 09:28:28 -0600 |
commit | fc7eb4aebf63525155bcadd366a87eed8f161568 (patch) | |
tree | 0f859882f8b3ae820e4a41266409494a91f5b64e /news/admin.py | |
parent | eea25558c766d5f3a32879d16e579d051906cbf3 (diff) |
Add safe_mode filter to news admin; preview uses safe mode
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'news/admin.py')
-rw-r--r-- | news/admin.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/news/admin.py b/news/admin.py index ad3cf517..acceb515 100644 --- a/news/admin.py +++ b/news/admin.py @@ -4,7 +4,8 @@ from .models import News class NewsAdmin(admin.ModelAdmin): list_display = ('title', 'author', 'postdate', 'last_modified', 'safe_mode') - list_filter = ('postdate', 'author') + list_filter = ('postdate', 'author', 'safe_mode') search_fields = ('title', 'content') + date_hierarchy = 'postdate' admin.site.register(News, NewsAdmin) |