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 | |
parent | 7e6afba545729d00de177eceb4bac2619b35eb61 (diff) |
added simple date time event to admin
Diffstat (limited to 'ctrack')
-rw-r--r-- | ctrack/register/admin.py | 7 | ||||
-rw-r--r-- | ctrack/templates/users/user_detail.html | 2 |
2 files changed, 7 insertions, 2 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) diff --git a/ctrack/templates/users/user_detail.html b/ctrack/templates/users/user_detail.html index 5b9386f..f4f466f 100644 --- a/ctrack/templates/users/user_detail.html +++ b/ctrack/templates/users/user_detail.html @@ -39,7 +39,7 @@ <table class="table table-bordered"> <thead> <tr> - <th>Event</th> + <th class="w-25">Event</th> <th>Comments</th> </tr> </thead> |