mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-12-23 23:23:06 +11:00
Admin options.
This commit is contained in:
parent
08574a4a3b
commit
a2767f20ec
1 changed files with 10 additions and 0 deletions
10
pastebin/apps/dpaste/admin.py
Normal file
10
pastebin/apps/dpaste/admin.py
Normal 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)
|
Loading…
Reference in a new issue