diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-10-21 14:31:41 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-10-21 14:31:41 +0100 |
commit | 6d2cd94729a20904d5970b895e686af40353868e (patch) | |
tree | 6af2b26fc11f5a26ee6bd4019fda282e02e15e51 /ctrack/register/admin.py | |
parent | 22bfb9da5bd6da1e7de4bf5545144fab97f93f8d (diff) |
adding the form for caf single date event
Diffstat (limited to 'ctrack/register/admin.py')
-rw-r--r-- | ctrack/register/admin.py | 8 |
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) |