Commit 972fed2e by Calen Pennington

Set position just-in-time when rendering sequences for the first time

parent 96541c43
...@@ -75,6 +75,11 @@ class SequenceModule(XModule): ...@@ -75,6 +75,11 @@ class SequenceModule(XModule):
raise NotFoundError('Unexpected dispatch type') raise NotFoundError('Unexpected dispatch type')
def render(self): def render(self):
# If we're rendering this sequence, but no position is set yet,
# default the position to the first element
if self.position is None:
self.position = 1
if self.rendered: if self.rendered:
return return
## Returns a set of all types of all sub-children ## Returns a set of all types of all sub-children
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment