Return list of instance as result of test recurrence rule wizard
Since 0db956eb2505 the on_change_with for xxx2Many must return a list of instances. Closes #12885
This commit is contained in:
@@ -279,8 +279,7 @@ class TestRecurrenceRuleSetView(ModelView):
|
||||
datetime = dt.datetime.combine(self.start_date, dt.time())
|
||||
for date in rruleset.xafter(datetime, self.count, inc=True):
|
||||
result.append(Result(date=date.date()))
|
||||
self.result = result
|
||||
return self._changed_values.get('result', [])
|
||||
return result
|
||||
|
||||
|
||||
class TestRecurrenceRuleSetViewResult(ModelView):
|
||||
|
||||
Reference in New Issue
Block a user