Commit 8c9bb862 authored by fred's avatar fred

close poll

parent e24237e2
......@@ -9,6 +9,7 @@ class VoteView(TemplateView):
template_name = 'vote.html'
def dispatch(self, request, *args, **kwargs):
return redirect('home')
try:
vote = Vote.objects.get(user=request.user)
messages.error(request, 'Non !')
......
......@@ -20,9 +20,11 @@
{% block content %}
{% if display_poll_button %}
<!--
<div class="poll">
<a href="{% url 'vote' %}">Sondage Logo !</a>
</div>
-->
{% endif %}
<h2>Émissions</h2>
......
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