mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-11 12:29:24 +00:00
Uses election_detail for vote form
This commit is contained in:
@ -56,7 +56,7 @@ class Role(models.Model):
|
||||
max_choice = models.IntegerField(_('max choice'), default=1)
|
||||
|
||||
def user_has_voted(self, user):
|
||||
return not self.has_voted.filter(id=user.id).exists()
|
||||
return self.has_voted.filter(id=user.id).exists()
|
||||
|
||||
def __str__(self):
|
||||
return ("%s : %s") % (self.election.title, self.title)
|
||||
|
Reference in New Issue
Block a user