summaryrefslogtreecommitdiff
path: root/sublab_project/news
diff options
context:
space:
mode:
authorMarkus Zapke-Grùˆndemann <info@keimlink.de>2011-12-30 01:54:52 +0100
committerMarkus Zapke-Grùˆndemann <info@keimlink.de>2011-12-30 01:54:52 +0100
commit3cc87b94ad57cf484453341c041bcf06c31981d3 (patch)
tree7108c2de7d6c4bf9efaf79fc1498b974526310d7 /sublab_project/news
parentf63274bb0c00eda68b6e2fae564c4da8ae55b84d (diff)
Added filter, search and date hierarchy.
Diffstat (limited to 'sublab_project/news')
-rw-r--r--sublab_project/news/admin.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/sublab_project/news/admin.py b/sublab_project/news/admin.py
index ffead60..0a145f5 100644
--- a/sublab_project/news/admin.py
+++ b/sublab_project/news/admin.py
@@ -6,6 +6,9 @@ from news.models import News
class NewsAdmin(admin.ModelAdmin):
prepopulated_fields = {'slug': ('title',)}
list_display = ('title', 'date_created', 'date_updated')
+ list_filter = ('author',)
+ search_fields = ['title', 'content']
+ date_hierarchy = 'date_updated'
def save_model(self, request, obj, form, change):
if not obj.id: