Add a makefile.
[koed-quiz.git] / apps / quiz / middleware.py
index 3cde07d..1cc3173 100644 (file)
@@ -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)