make questionset a py3 iterator

dj111
eric 2020-03-05 23:40:22 -05:00
parent c0a60a83df
commit cb6de53bfc
1 changed files with 2 additions and 0 deletions

View File

@ -197,6 +197,8 @@ class QuestionSet(models.Model, metaclass=TransMeta):
retnext = True retnext = True
return None return None
__next__ = next
def prev(self): def prev(self):
qs = self.questionnaire.questionsets() qs = self.questionnaire.questionsets()
last = None last = None