mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-03-06 12:44:20 +01:00
13 lines
386 B
Python
13 lines
386 B
Python
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})
|