From 4026dac3a3599ee2875ddd644e1c462eabd96241 Mon Sep 17 00:00:00 2001 From: Christopher Neugebauer Date: Thu, 15 Sep 2016 15:46:45 +1000 Subject: [PATCH] Re-adds admin for TimeOrStockLimitFlag Fixes #82 --- registrasion/admin.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/registrasion/admin.py b/registrasion/admin.py index 95e46b70..6c0b44e9 100644 --- a/registrasion/admin.py +++ b/registrasion/admin.py @@ -215,3 +215,15 @@ class GroupMemberFlagAdmin(admin.ModelAdmin, EffectsDisplayMixin): fields = ("description", "group") list_display = ("description", "effects") + + +@admin.register(conditions.TimeOrStockLimitFlag) +class TimeOrStockLimitFlagAdmin(admin.ModelAdmin, EffectsDisplayMixin): + list_display = ( + "description", + "start_time", + "end_time", + "limit", + "effects", + ) + ordering = ("start_time", "end_time", "limit")