Commit a27fd267 authored by Sli's avatar Sli

Remove useless methods on elections

parent 1f60fbd4
......@@ -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
......
......@@ -169,12 +169,12 @@ th {
{% trans %}Polls close {% endtrans %}
<time datetime="{{ election.end_date }}">{{ election.end_date|date("l d F Y") }}</time> at <time>{{ election.end_date|time("G:i") }}</time>
</p>
{%- if object.has_voted(request.user) %}
{# {%- if object.has_voted(request.user) %}
<p class="election__elector-infos">
<span>{% trans %}You already have submitted your vote.{% endtrans %}</span>
</p>
{%- endif %}
</section>
#} </section>
<section>
<table>
{%- set election_lists = object.election_list.all() -%}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment