From f7e2cf54b6d4bb06821092f64cdfe59ddf675eab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vi=CC=81=C3=B0ir=20Valberg=20Gu=C3=B0mundsson?= Date: Sun, 10 Jul 2016 19:44:42 +0200 Subject: [PATCH] Adding private and deleted to list_display on villages --- villages/admin.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/villages/admin.py b/villages/admin.py index c276e488..e752aaea 100644 --- a/villages/admin.py +++ b/villages/admin.py @@ -5,4 +5,13 @@ from .models import Village @admin.register(Village) class VillageAdmin(admin.ModelAdmin): - pass + list_display = [ + 'name', + 'private', + 'deleted', + ] + + list_filter = [ + 'private', + 'deleted', + ]