fnp
/
koed-quiz.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Get current quiz by domain from request.
[koed-quiz.git]
/
apps
/
quiz
/
templatetags
/
quiz_tags.py
diff --git
a/apps/quiz/templatetags/quiz_tags.py
b/apps/quiz/templatetags/quiz_tags.py
index
2790ae2
..
6f7af26
100755
(executable)
--- a/
apps/quiz/templatetags/quiz_tags.py
+++ b/
apps/quiz/templatetags/quiz_tags.py
@@
-9,6
+9,6
@@
from quiz.models import Quiz
register = template.Library()
-@register.simple_tag
-def quiz_footer():
- return mark_safe(
Quiz.current()
.footer)
+@register.simple_tag
(takes_context=True)
+def quiz_footer(
context
):
+ return mark_safe(
context.get('request').current_quiz
.footer)