From 7bb5c54d7ee3112eaa827bad5b2be10a017dbb3e Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 31 Dec 2012 09:42:16 -0600 Subject: Minor news admin code cleanup Signed-off-by: Dan McGee --- news/admin.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'news') diff --git a/news/admin.py b/news/admin.py index acceb515..562c16d4 100644 --- a/news/admin.py +++ b/news/admin.py @@ -2,10 +2,14 @@ from django.contrib import admin from .models import News + class NewsAdmin(admin.ModelAdmin): list_display = ('title', 'author', 'postdate', 'last_modified', 'safe_mode') list_filter = ('postdate', 'author', 'safe_mode') search_fields = ('title', 'content') date_hierarchy = 'postdate' + admin.site.register(News, NewsAdmin) + +# vim: set ts=4 sw=4 et: -- cgit v1.2.3-2-g168b