Require login for index view
This commit is contained in:
parent
a5b65974fb
commit
dd67ee91da
3 changed files with 23 additions and 3 deletions
|
@ -3,13 +3,14 @@ This module defines the views for the gnuviechadmin customer dashboard.
|
|||
|
||||
"""
|
||||
from django.contrib.auth import get_user_model
|
||||
from django.contrib.auth.mixins import LoginRequiredMixin
|
||||
from django.views.generic import DetailView, TemplateView
|
||||
from gvacommon.viewmixins import StaffOrSelfLoginRequiredMixin
|
||||
|
||||
from hostingpackages.models import CustomerHostingPackage
|
||||
|
||||
|
||||
class IndexView(TemplateView):
|
||||
class IndexView(LoginRequiredMixin, TemplateView):
|
||||
"""
|
||||
This is the dashboard view.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue