From 6a1229a4baed1d262a89e5af1e8c88ed7ad05de0 Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Fri, 18 Sep 2020 21:03:05 +0200 Subject: [PATCH] Added valid column to VouchersAdmin. --- django_lostplaces/lostplaces/admin.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/django_lostplaces/lostplaces/admin.py b/django_lostplaces/lostplaces/admin.py index be58dd5..d56db16 100644 --- a/django_lostplaces/lostplaces/admin.py +++ b/django_lostplaces/lostplaces/admin.py @@ -15,8 +15,7 @@ from lostplaces.forms import ExplorerCreationForm, ExplorerChangeForm class VoucherAdmin(admin.ModelAdmin): fields = ['code', 'expires_when', 'created_when'] readonly_fields = ['created_when'] - list_display = ('__str__', 'code', 'created_when', 'expires_when') - # todo: is_valid (Wurstwasser) + list_display = ('__str__', 'code', 'created_when', 'expires_when', 'valid') class PhotoAlbumsAdmin(admin.ModelAdmin): list_display = ('label', 'place', 'url' )