diff --git a/symposion/schedule/forms.py b/symposion/schedule/forms.py index 3e4c9ff4..16187b29 100644 --- a/symposion/schedule/forms.py +++ b/symposion/schedule/forms.py @@ -15,7 +15,7 @@ from symposion.schedule.models import (Day, Presentation, Room, SlotKind, Slot, class SlotEditForm(forms.Form): - + def __init__(self, *args, **kwargs): self.slot = kwargs.pop("slot") super(SlotEditForm, self).__init__(*args, **kwargs) @@ -24,7 +24,7 @@ class SlotEditForm(forms.Form): self.fields["presentation"] = self.build_presentation_field() else: self.fields["content_override"] = self.build_content_override_field() - + def build_presentation_field(self): kwargs = {} queryset = Presentation.objects.all() @@ -39,7 +39,7 @@ class SlotEditForm(forms.Form): kwargs["required"] = True kwargs["queryset"] = queryset return forms.ModelChoiceField(**kwargs) - + def build_content_override_field(self): kwargs = { "label": "Content",