Files
2024-12-11 23:28:08 +01:00

11 lines
334 B
Python

from django.http import HttpRequest
from django.views.generic import TemplateView
class BackofficeIndexView(TemplateView):
template_name = "backoffice/index.html"
def get(self, request: HttpRequest, *args, **kwargs):
seasons = request.user.seasons.all()
return self.render_to_response({"seasons": seasons})