X-Git-Url: https://git.mdrn.pl/koed-quiz.git/blobdiff_plain/77043beb3285d1bb46534e29853e579044132726..ff9d51a145c153222e088a7c08d540ea61005395:/apps/quiz/views.py 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: