bornhack-website/src/sponsors/admin.py

17 lines
383 B
Python
Raw Normal View History

2017-07-15 09:00:59 +00:00
from django.contrib import admin
from .models import Sponsor, SponsorTier
@admin.register(Sponsor)
class SponsorAdmin(admin.ModelAdmin):
list_display = ('name', 'tier')
@admin.register(SponsorTier)
class SponsorTierAdmin(admin.ModelAdmin):
list_display = ('name', 'camp', 'weight')
list_editable = ('weight',)
list_filter = ('camp',)
ordering = ('weight', )