3cde07db2cc934c278729449449bcc143506a6b9
[koed-quiz.git] / apps / quiz / middleware.py
1 from .models import Quiz
2
3 class CurrentQuizMiddleware(object):
4     def process_request(self, request):
5         request.current_quiz = Quiz.current(request)