mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-24 08:52:15 +00:00
Make venue/date editable on EC
For multi venue, multi day events Defaults to date and venue set on the event. Also made power MIC default to that set in RA
This commit is contained in:
@@ -127,6 +127,12 @@ class EventChecklistEdit(generic.UpdateView):
|
||||
context['event'] = ec.event
|
||||
context['edit'] = True
|
||||
context['page_title'] = 'Edit Event Checklist for Event {}'.format(ec.event.display_id)
|
||||
form = context['form']
|
||||
# Get some other objects to include in the form. Used when there are errors but also nice and quick.
|
||||
for field, model in form.related_models.items():
|
||||
value = form[field].value()
|
||||
if value is not None and value != '':
|
||||
context[field] = model.objects.get(pk=value)
|
||||
return context
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user