adding back in ws
This commit is contained in:
parent
5f27b01452
commit
6102c4e5e4
1 changed files with 3 additions and 3 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue