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