summaryrefslogtreecommitdiff
path: root/news
diff options
context:
space:
mode:
Diffstat (limited to 'news')
-rw-r--r--news/admin.py4
1 files changed, 4 insertions, 0 deletions
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: