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