Skip to content
Snippets Groups Projects
Commit e7c42142 authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Add note about model clusters on the save of forms

parent 22a419cb
No related branches found
No related tags found
No related merge requests found
...@@ -290,6 +290,7 @@ class Round(WorkflowStreamForm, SubmittableStreamForm): ...@@ -290,6 +290,7 @@ class Round(WorkflowStreamForm, SubmittableStreamForm):
super().save(*args, **kwargs) super().save(*args, **kwargs)
if is_new and hasattr(self, 'parent_page'): if is_new and hasattr(self, 'parent_page'):
# Would be nice to do this using model clusters as part of the __init__
for form in self.parent_page.forms.all(): for form in self.parent_page.forms.all():
# Create a copy of the existing form object # Create a copy of the existing form object
new_form = form.form new_form = form.form
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment