summaryrefslogtreecommitdiff
path: root/news/admin.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-09-15 09:04:00 -0500
committerDan McGee <dan@archlinux.org>2010-09-15 09:04:00 -0500
commit8a3bd1ad8a702aabebbfacca51a57883b6d3214e (patch)
treee3492f20cf2a2942ac80f34008b9f082ccb024cf /news/admin.py
parentb084936ad9a1e5d7edfcfeb3495b997cb2fe368b (diff)
Spruce up news admin view
Add last modified date as a column, and fix up some other small display, sorting, and ordering issues. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'news/admin.py')
-rw-r--r--news/admin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/news/admin.py b/news/admin.py
index 1fdd534c..1b7de1d8 100644
--- a/news/admin.py
+++ b/news/admin.py
@@ -3,8 +3,8 @@ from django.contrib import admin
from .models import News
class NewsAdmin(admin.ModelAdmin):
- list_display = ('title', 'author', 'postdate')
- list_filter = ('author', 'postdate')
+ list_display = ('title', 'author', 'postdate', 'last_modified')
+ list_filter = ('postdate', 'author')
search_fields = ('title', 'content')
admin.site.register(News, NewsAdmin)