summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--news/admin.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/news/admin.py b/news/admin.py
index acceb51..562c16d 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: