Improving creation of ballots (fixes #3103)
This commit is contained in:
parent
42cf987aed
commit
238b4b7f0a
@ -4,6 +4,7 @@ from django.core.exceptions import ObjectDoesNotExist
|
|||||||
from django.db import models
|
from django.db import models
|
||||||
from django.utils.translation import ugettext as _
|
from django.utils.translation import ugettext as _
|
||||||
|
|
||||||
|
from openslides.utils.autoupdate import inform_changed_data
|
||||||
from openslides.utils.models import MinMaxIntegerField
|
from openslides.utils.models import MinMaxIntegerField
|
||||||
|
|
||||||
|
|
||||||
@ -131,7 +132,8 @@ class BasePoll(models.Model):
|
|||||||
for option_data in options_data:
|
for option_data in options_data:
|
||||||
option = self.get_option_class()(**option_data)
|
option = self.get_option_class()(**option_data)
|
||||||
option.poll = self
|
option.poll = self
|
||||||
option.save()
|
option.save(skip_autoupdate=True)
|
||||||
|
inform_changed_data(self.get_assignment())
|
||||||
|
|
||||||
def get_options(self):
|
def get_options(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user