diff --git a/openslides/application/models.py b/openslides/application/models.py index 619bd4156..8e9f11c17 100644 --- a/openslides/application/models.py +++ b/openslides/application/models.py @@ -528,6 +528,9 @@ class ApplicationPoll(BasePoll, CountInvalid, CountVotesCast): def get_absolute_url(self): return reverse('application_poll_view', args=[self.id]) + def ballot(self): + return self.application.applicationpoll_set.filter(id__lte=self.id).count() + from django.dispatch import receiver from openslides.config.signals import default_config_value diff --git a/openslides/application/templates/application/view.html b/openslides/application/templates/application/view.html index 101d94618..b70601f00 100644 --- a/openslides/application/templates/application/view.html +++ b/openslides/application/templates/application/view.html @@ -49,7 +49,7 @@