bornhack-website/villages/admin.py

18 lines
273 B
Python
Raw Normal View History

2016-07-05 21:43:18 +00:00
from django.contrib import admin
from .models import Village
@admin.register(Village)
class VillageAdmin(admin.ModelAdmin):
list_display = [
'name',
'private',
'deleted',
]
list_filter = [
'private',
'deleted',
]