Newer
Older
from AKModel.models import Event, AKOwner, AKType, AKTrack, AKTag, AKRequirement, AK, Room, AKSlot
admin.site.register(AKType)
admin.site.register(AKTrack)
admin.site.register(AKTag)
admin.site.register(AKRequirement)
class AKAdmin(admin.ModelAdmin):
model = AK
list_display = ['name', 'short_name', 'type', 'is_wish']
def is_wish(self, obj):
return obj.wish
is_wish.boolean = True
admin.site.register(AK, AKAdmin)