improving admin page interfaces

pull/1/head
Andromeda Yelton 2013-05-06 15:41:45 -04:00
parent 5356fdb7c4
commit 59248bd07d
1 changed files with 6 additions and 2 deletions

View File

@ -22,9 +22,11 @@ class RegluitAdmin(AdminSite):
login_template = 'registration/login.html'
class UserAdmin(ModelAdmin):
pass
search_fields = ['username', 'email']
list_display = ('username', 'email')
class ClaimAdmin(ModelAdmin):
list_display = ('work', 'rights_holder', 'status')
date_hierarchy = 'created'
class RightsHolderAdmin(ModelAdmin):
@ -34,10 +36,12 @@ class PremiumAdmin(ModelAdmin):
date_hierarchy = 'created'
class CampaignAdmin(ModelAdmin):
list_display = ('work', 'created', 'status')
date_hierarchy = 'created'
search_fields = ['work']
class WorkAdmin(ModelAdmin):
search_fields = ('title',)
search_fields = ['title']
ordering = ('title',)
list_display = ('title', 'created')
date_hierarchy = 'created'