From: Radek Czajka Date: Tue, 27 Sep 2011 11:17:10 +0000 (+0200) Subject: question fix X-Git-Url: https://git.mdrn.pl/koed-quiz.git/commitdiff_plain/4fd65015efdd36e431d97f7de13dbb94e1c389fa?ds=inline question fix --- 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: