Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Make external reference field in Event occurrence inlines read-only
Browse files Browse the repository at this point in the history
  • Loading branch information
jmurty committed Nov 24, 2016
1 parent 72df65d commit 914cc1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions icekit_events/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ 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,
# so hiding relevant fields
'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(
Expand Down

0 comments on commit 914cc1e

Please sign in to comment.