question fix
authorRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Tue, 27 Sep 2011 11:17:10 +0000 (13:17 +0200)
committerRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Tue, 27 Sep 2011 11:17:10 +0000 (13:17 +0200)
apps/quiz/views.py

index 18a268f..8fa7280 100644 (file)
@@ -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: