From a2dceb300f55054b49333a659cb1ee9b8919b70e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Wed, 24 Aug 2016 23:57:55 +0200 Subject: [PATCH] Fix: vieux sondages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Les sondages archivés (`survey.old = True`) mais toujours ouverts (`survey.suervy_open = True`) restaient accessibles. Ce n'est plus le cas --- gestioncof/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gestioncof/views.py b/gestioncof/views.py index a10f1867..b635ecab 100644 --- a/gestioncof/views.py +++ b/gestioncof/views.py @@ -94,7 +94,7 @@ def logout(request): @login_required def survey(request, survey_id): survey = get_object_or_404(Survey, id=survey_id) - if not survey.survey_open: + if not survey.survey_open or survey.old: raise Http404 success = False deleted = False