From 238b4b7f0a3457946dbcac05efa1b49de1c212c3 Mon Sep 17 00:00:00 2001 From: FinnStutzenstein Date: Tue, 21 Mar 2017 10:33:36 +0100 Subject: [PATCH] Improving creation of ballots (fixes #3103) --- openslides/poll/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openslides/poll/models.py b/openslides/poll/models.py index 9a1e512b9..ccdeec2b8 100644 --- a/openslides/poll/models.py +++ b/openslides/poll/models.py @@ -4,6 +4,7 @@ from django.core.exceptions import ObjectDoesNotExist from django.db import models from django.utils.translation import ugettext as _ +from openslides.utils.autoupdate import inform_changed_data from openslides.utils.models import MinMaxIntegerField @@ -131,7 +132,8 @@ class BasePoll(models.Model): for option_data in options_data: option = self.get_option_class()(**option_data) option.poll = self - option.save() + option.save(skip_autoupdate=True) + inform_changed_data(self.get_assignment()) def get_options(self): """