From 914cc1e5555063e9a8e9b3920a4b622fc1c4a151 Mon Sep 17 00:00:00 2001 From: James Murty Date: Thu, 24 Nov 2016 15:05:06 +1100 Subject: [PATCH] Make external reference field in Event occurrence inlines read-only --- icekit_events/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/icekit_events/admin.py b/icekit_events/admin.py index ecfaef3..83e37fc 100644 --- a/icekit_events/admin.py +++ b/icekit_events/admin.py @@ -58,7 +58,7 @@ class EventRepeatGeneratorsInline(admin.TabularInline): class OccurrencesInline(admin.TabularInline): model = models.Occurrence form = admin_forms.BaseOccurrenceForm - fields = ('is_all_day', 'start', 'end', 'is_user_modified', 'external_ref',) + fields = ('is_all_day', 'start', 'end', 'is_user_modified', 'external_ref') exclude = ( 'generator', 'is_generated', # is_hidden and is_cancelled aren't implemented yet, @@ -66,7 +66,7 @@ class OccurrencesInline(admin.TabularInline): 'is_hidden', 'is_cancelled', 'cancel_reason' ) extra = 1 - readonly_fields = ('is_user_modified', )#'is_cancelled',) + readonly_fields = ('is_user_modified', 'external_ref') # 'is_cancelled',) class EventChildAdmin(