update admin views for sponsors

This commit is contained in:
Luke Hatcher 2012-07-18 19:22:41 -04:00
parent 4be04a3800
commit 02a8e274f7

View file

@ -42,6 +42,7 @@ class SponsorAdmin(admin.ModelAdmin):
}) })
] ]
inlines = [SponsorBenefitInline] inlines = [SponsorBenefitInline]
list_display = ["name", "external_url", "level", "active"]
def get_form(self, *args, **kwargs): def get_form(self, *args, **kwargs):
# @@@ kinda ugly but using choices= on NullBooleanField is broken # @@@ kinda ugly but using choices= on NullBooleanField is broken
@ -56,6 +57,7 @@ class SponsorAdmin(admin.ModelAdmin):
class BenefitAdmin(admin.ModelAdmin): class BenefitAdmin(admin.ModelAdmin):
list_display = ["name", "type", "description"]
inlines = [BenefitLevelInline] inlines = [BenefitLevelInline]