diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-10-17 21:06:38 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-10-17 21:06:38 +0100 |
commit | 8e12b613da0797b2be85049a3a3c50b9fd90a201 (patch) | |
tree | a3edc73e524f03b1d765645d23f73b913ebbdb5e /ctrack/register/admin.py | |
parent | 7e6afba545729d00de177eceb4bac2619b35eb61 (diff) |
added simple date time event to admin
Diffstat (limited to 'ctrack/register/admin.py')
-rw-r--r-- | ctrack/register/admin.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ctrack/register/admin.py b/ctrack/register/admin.py index 09cd6da..16e20b3 100644 --- a/ctrack/register/admin.py +++ b/ctrack/register/admin.py @@ -1,6 +1,6 @@ from django.contrib import admin -from ctrack.register.models import EngagementEvent +from ctrack.register.models import EngagementEvent, SingleDateTimeEvent from ctrack.register.models import EngagementType @@ -14,5 +14,10 @@ class EngagementEventTypeAdmin(admin.ModelAdmin): list_display = ("descriptor", "enforcement_instrument", "single_date_type", "regulation_reference") +class SingleDateTimeEventAdmin(admin.ModelAdmin): + model = SingleDateTimeEvent + + admin.site.register(EngagementEvent, EngagementEventAdmin) admin.site.register(EngagementType, EngagementEventTypeAdmin) +admin.site.register(SingleDateTimeEvent, SingleDateTimeEventAdmin) |