rename ballout def in application and assignment

This commit is contained in:
Oskar Hahn 2012-04-18 19:02:41 +02:00
parent a77038fbf4
commit 9f70b2ff1c
2 changed files with 2 additions and 2 deletions

View File

@ -532,7 +532,7 @@ class ApplicationPoll(BasePoll, CountInvalid, CountVotesCast):
def get_absolute_url(self): def get_absolute_url(self):
return reverse('application_poll_view', args=[self.id]) return reverse('application_poll_view', args=[self.id])
def ballot(self): def get_ballot(self):
return self.application.applicationpoll_set.filter(id__lte=self.id).count() return self.application.applicationpoll_set.filter(id__lte=self.id).count()

View File

@ -143,7 +143,7 @@ class AssignmentPoll(BasePoll, CountInvalid, CountVotesCast, PublishPollMixin):
CountInvalid.append_pollform_fields(self, fields) CountInvalid.append_pollform_fields(self, fields)
CountVotesCast.append_pollform_fields(self, fields) CountVotesCast.append_pollform_fields(self, fields)
def ballot(self): def get_ballot(self):
return self.assignment.assignmentpoll_set.filter(id__lte=self.id).count() return self.assignment.assignmentpoll_set.filter(id__lte=self.id).count()
@models.permalink @models.permalink