X-Git-Url: https://git.mdrn.pl/koed-quiz.git/blobdiff_plain/d302791037e175b1fdb79ed1aa5de2984d117485..HEAD:/apps/quiz/middleware.py diff --git a/apps/quiz/middleware.py b/apps/quiz/middleware.py index 3cde07d..1cc3173 100644 --- 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)