From a5ccd4b3a176fa8c0302000fd1f09b06c1a04ced Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Fri, 29 May 2020 16:14:26 +0100 Subject: after a lot of pain, incident report form basically works --- ctrack/organisations/admin.py | 1 + 1 file changed, 1 insertion(+) (limited to 'ctrack/organisations/admin.py') diff --git a/ctrack/organisations/admin.py b/ctrack/organisations/admin.py index ce2b21b..203baa9 100644 --- a/ctrack/organisations/admin.py +++ b/ctrack/organisations/admin.py @@ -24,6 +24,7 @@ get_organisation_name.short_description = "Organisation" class IncidentReportAdmin(admin.ModelAdmin): model = IncidentReport + readonly_fields = ["date_time_incident_reported"] class AddressTypeAdmin(admin.ModelAdmin): -- cgit v1.2.3