allow scheduling of tutorial types

This commit is contained in:
Luke Hatcher 2012-12-20 01:50:26 -05:00
parent 14d127a122
commit 6f172da50a

View file

@ -11,7 +11,7 @@ class SlotEditForm(forms.Form):
def __init__(self, *args, **kwargs):
self.slot = kwargs.pop("slot")
super(SlotEditForm, self).__init__(*args, **kwargs)
if self.slot.kind.label == "talk":
if self.slot.kind.label in ["talk", "tutorial"]:
self.fields["presentation"] = self.build_presentation_field()
else:
self.fields["content_override"] = self.build_content_override_field()