academon/core/views/frontend.py

16 lines
521 B
Python
Raw Permalink Normal View History

2022-08-08 09:43:31 +00:00
from django.views.generic import TemplateView
from django.contrib.auth.mixins import LoginRequiredMixin
from ..mixins import StaffRequiredMixin, TitleMixin
class FrontendTemplateView(TitleMixin, TemplateView):
pass
class NotImplementedView(LoginRequiredMixin, FrontendTemplateView):
title = "Not fully implemented"
template_name = "core/frontend/notimplemented.html"
class DashboardView(LoginRequiredMixin, FrontendTemplateView):
title = "Dashboard"
template_name = "core/frontend/dashboard.html"