rename ballout def in application and assignment
This commit is contained in:
parent
a77038fbf4
commit
9f70b2ff1c
@ -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()
|
||||||
|
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user