fnp
/
koed-quiz.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
urls fix
[koed-quiz.git]
/
apps
/
quiz
/
views.py
diff --git
a/apps/quiz/views.py
b/apps/quiz/views.py
index
830798d
..
8fa7280
100644
(file)
--- 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]
cur_index = ticket.index(request.path)
if cur_index:
previous_url = ticket[cur_index - 1]
- el
se
:
+ el
if ticket
:
valid_url = ticket[-1]
if request.method == 'POST' and valid:
valid_url = ticket[-1]
if request.method == 'POST' and valid:
@@
-51,10
+51,9
@@
def result(request, slug=None):
cur_index = ticket.index(request.path)
if cur_index:
previous_url = ticket[cur_index - 1]
cur_index = ticket.index(request.path)
if cur_index:
previous_url = ticket[cur_index - 1]
- el
se
:
+ el
if ticket
:
valid_url = ticket[-1]
valid_url = ticket[-1]
-
result = get_object_or_404(Quiz.current().result_set, slug=slug)
return render(request, "quiz/result_detail.html", locals())
result = get_object_or_404(Quiz.current().result_set, slug=slug)
return render(request, "quiz/result_detail.html", locals())