diff --git a/election/models.py b/election/models.py index e042bba5..b6217403 100644 --- a/election/models.py +++ b/election/models.py @@ -36,12 +36,6 @@ class Election(models.Model): now = timezone.now() return bool(now <= self.end_candidature and now >= self.start_candidature) - def get_results(self): - pass - - def has_voted(self, user): - return False - # Permissions diff --git a/election/templates/election/election_detail.jinja b/election/templates/election/election_detail.jinja index a7c14050..f43e8a5c 100644 --- a/election/templates/election/election_detail.jinja +++ b/election/templates/election/election_detail.jinja @@ -169,12 +169,12 @@ th { {% trans %}Polls close {% endtrans %} at
- {%- if object.has_voted(request.user) %} +{# {%- if object.has_voted(request.user) %}{% trans %}You already have submitted your vote.{% endtrans %}
{%- endif %} - + #}