From a2767f20ecb26878fd48057e847f6878c1bb33dd Mon Sep 17 00:00:00 2001 From: Martin Mahner Date: Wed, 8 Jun 2011 11:33:46 +0200 Subject: [PATCH] Admin options. --- pastebin/apps/dpaste/admin.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 pastebin/apps/dpaste/admin.py diff --git a/pastebin/apps/dpaste/admin.py b/pastebin/apps/dpaste/admin.py new file mode 100644 index 0000000..cc851b3 --- /dev/null +++ b/pastebin/apps/dpaste/admin.py @@ -0,0 +1,10 @@ +from django.contrib import admin +from pastebin.apps.dpaste.models import Snippet, Spamword + +class SnippetAdmin(admin.ModelAdmin): + list_display = ('published', 'expires', 'author', 'title') + date_hierarchy = 'published' + list_filter = ('published',) + +admin.site.register(Snippet, SnippetAdmin) +admin.site.register(Spamword) \ No newline at end of file