bornhack-website/villages/admin.py

18 lines
273 B
Python

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',
]