update admin views for sponsors
This commit is contained in:
parent
4be04a3800
commit
02a8e274f7
1 changed files with 2 additions and 0 deletions
|
@ -42,6 +42,7 @@ class SponsorAdmin(admin.ModelAdmin):
|
|||
})
|
||||
]
|
||||
inlines = [SponsorBenefitInline]
|
||||
list_display = ["name", "external_url", "level", "active"]
|
||||
|
||||
def get_form(self, *args, **kwargs):
|
||||
# @@@ kinda ugly but using choices= on NullBooleanField is broken
|
||||
|
@ -56,6 +57,7 @@ class SponsorAdmin(admin.ModelAdmin):
|
|||
|
||||
class BenefitAdmin(admin.ModelAdmin):
|
||||
|
||||
list_display = ["name", "type", "description"]
|
||||
inlines = [BenefitLevelInline]
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue