mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-03-05 20:44:19 +01:00
More!
This commit is contained in:
13
tvdt/backoffice/views/quiz.py
Normal file
13
tvdt/backoffice/views/quiz.py
Normal file
@@ -0,0 +1,13 @@
|
||||
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})
|
||||
Reference in New Issue
Block a user