aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-10-17 21:06:38 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-10-17 21:06:38 +0100
commit8e12b613da0797b2be85049a3a3c50b9fd90a201 (patch)
treea3edc73e524f03b1d765645d23f73b913ebbdb5e /ctrack
parent7e6afba545729d00de177eceb4bac2619b35eb61 (diff)
added simple date time event to admin
Diffstat (limited to 'ctrack')
-rw-r--r--ctrack/register/admin.py7
-rw-r--r--ctrack/templates/users/user_detail.html2
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>