mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-03-05 20:44:19 +01:00
14 lines
373 B
Python
14 lines
373 B
Python
from django.http import HttpRequest
|
|
from django.views import View
|
|
from django.views.generic.base import TemplateResponseMixin
|
|
|
|
from quiz.models import Quiz
|
|
|
|
|
|
class QuizView(View, TemplateResponseMixin):
|
|
template_name = "backoffice/quiz.html"
|
|
|
|
def get(self, request: HttpRequest, quiz: Quiz, *args, **kwargs):
|
|
|
|
return self.render_to_response({"quiz": quiz})
|