Re-adds admin for TimeOrStockLimitFlag

Fixes #82
This commit is contained in:
Christopher Neugebauer 2016-09-15 15:46:45 +10:00
parent 734592207e
commit 4026dac3a3

View file

@ -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")