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')
|
2017-07-15 14:20:51 +00:00
|
|
|
list_filter = ('tier__camp',)
|
2017-07-15 09:00:59 +00:00
|
|
|
|
|
|
|
|
|
|
|
@admin.register(SponsorTier)
|
|
|
|
class SponsorTierAdmin(admin.ModelAdmin):
|
|
|
|
list_display = ('name', 'camp', 'weight')
|
|
|
|
list_editable = ('weight',)
|
|
|
|
list_filter = ('camp',)
|
|
|
|
ordering = ('weight', )
|