Files
goodtimes/dashboard/views.py
rizwanisready db213d3228 wrong commit
2024-02-29 13:25:50 +05:30

17 lines
531 B
Python

from django.shortcuts import render
from django.contrib.auth.mixins import LoginRequiredMixin
from accounts import resource_action
from django.views import generic
# Create your views here.
class DashboardView(LoginRequiredMixin, generic.TemplateView):
page_name = resource_action.RESOURCE_MANAGE_DASHBOARD
template_name = "dashboard/main-dashboard.html"
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context["page_name"] = self.page_name
return context