Commit 8c9bb862 authored by fred's avatar fred

close poll

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