Admin options.

This commit is contained in:
Martin Mahner 2011-06-08 11:33:46 +02:00
parent 08574a4a3b
commit a2767f20ec

View file

@ -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)