allow scheduling of tutorial types
This commit is contained in:
parent
14d127a122
commit
6f172da50a
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ 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)
|
||||||
if self.slot.kind.label == "talk":
|
if self.slot.kind.label in ["talk", "tutorial"]:
|
||||||
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()
|
||||||
|
|
Loading…
Reference in a new issue