mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-03-06 12:44:20 +01:00
More!
This commit is contained in:
12
tvdt/backoffice/views/season.py
Normal file
12
tvdt/backoffice/views/season.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from django.http import HttpRequest
|
||||
from django.views import View
|
||||
from django.views.generic.base import TemplateResponseMixin
|
||||
|
||||
from quiz.models import Season
|
||||
|
||||
|
||||
class SeasonView(View, TemplateResponseMixin):
|
||||
template_name = "backoffice/season.html"
|
||||
|
||||
def get(self, request: HttpRequest, season: Season, *args, **kwargs):
|
||||
return self.render_to_response({"season": season})
|
||||
Reference in New Issue
Block a user