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