From cc42792a38746ef2c8af27488075a682dfebfa9b Mon Sep 17 00:00:00 2001 From: Oskar Hahn Date: Sat, 23 Jun 2012 12:43:18 +0200 Subject: [PATCH] #164 call a assignmentpoll by this ballot number --- openslides/assignment/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openslides/assignment/models.py b/openslides/assignment/models.py index 1475db47a..8ffe7a020 100644 --- a/openslides/assignment/models.py +++ b/openslides/assignment/models.py @@ -221,6 +221,9 @@ class AssignmentPoll(BasePoll, CountInvalid, CountVotesCast, PublishPollMixin): if link == 'delete': return ('assignment_poll_delete', [str(self.id)]) + def __unicode__(self): + return _("Ballot %d") % self.get_ballot() + from django.dispatch import receiver from openslides.config.signals import default_config_value