adding back in ws

This commit is contained in:
David Ray 2014-03-03 08:38:47 -05:00
parent 5f27b01452
commit 6102c4e5e4

View file

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