mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-30 22:29:32 +00:00
Uses election_detail for vote form
This commit is contained in:
1 parent
938e2ce0a9
commit
1f60fbd484
4 files changed
+26
-15
No files matched your search
+1
-1
@@ -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