fnp
/
koed-quiz.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add a makefile.
[koed-quiz.git]
/
apps
/
quiz
/
middleware.py
diff --git
a/apps/quiz/middleware.py
b/apps/quiz/middleware.py
index
3cde07d
..
1cc3173
100644
(file)
--- a/
apps/quiz/middleware.py
+++ b/
apps/quiz/middleware.py
@@
-1,5
+1,6
@@
+from django.utils.deprecation import MiddlewareMixin
from .models import Quiz
-class CurrentQuizMiddleware(
object
):
+class CurrentQuizMiddleware(
MiddlewareMixin
):
def process_request(self, request):
request.current_quiz = Quiz.current(request)