aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/register/admin.py
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-10-21 14:31:41 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-10-21 14:31:41 +0100
commit6d2cd94729a20904d5970b895e686af40353868e (patch)
tree6af2b26fc11f5a26ee6bd4019fda282e02e15e51 /ctrack/register/admin.py
parent22bfb9da5bd6da1e7de4bf5545144fab97f93f8d (diff)
adding the form for caf single date event
Diffstat (limited to 'ctrack/register/admin.py')
-rw-r--r--ctrack/register/admin.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/ctrack/register/admin.py b/ctrack/register/admin.py
index c4e071d..6e6aa26 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, SingleDateTimeEvent, NoteEvent
+from ctrack.register.models import EngagementEvent, SingleDateTimeEvent, NoteEvent, CAFSingleDateEvent
from ctrack.register.models import EngagementType
@@ -19,6 +19,11 @@ class SingleDateTimeEventAdmin(admin.ModelAdmin):
list_display = ("type_descriptor", "short_description", "datetime", "user", "created_date")
+class CAFSingleDateEventAdmin(admin.ModelAdmin):
+ model = CAFSingleDateEvent
+ list_display = ("type_descriptor", "date")
+
+
class NoteEventAdmin(admin.ModelAdmin):
model = NoteEvent
list_display = ("short_description", "organisation", "user")
@@ -27,4 +32,5 @@ class NoteEventAdmin(admin.ModelAdmin):
admin.site.register(EngagementEvent, EngagementEventAdmin)
admin.site.register(EngagementType, EngagementEventTypeAdmin)
admin.site.register(SingleDateTimeEvent, SingleDateTimeEventAdmin)
+admin.site.register(CAFSingleDateEvent, CAFSingleDateEventAdmin)
admin.site.register(NoteEvent, NoteEventAdmin)