From 4fd65015efdd36e431d97f7de13dbb94e1c389fa Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Tue, 27 Sep 2011 13:17:10 +0200 Subject: [PATCH] question fix --- apps/quiz/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/quiz/views.py b/apps/quiz/views.py index 18a268f..8fa7280 100644 --- a/apps/quiz/views.py +++ b/apps/quiz/views.py @@ -18,7 +18,7 @@ def question(request, slug=None): cur_index = ticket.index(request.path) if cur_index: previous_url = ticket[cur_index - 1] - else: + elif ticket: valid_url = ticket[-1] if request.method == 'POST' and valid: -- 2.20.1