Don't use LoginRequired for PermissionDenied View
This commit is contained in:
parent
883d439544
commit
25a5d8f5da
|
@ -1,5 +1,4 @@
|
||||||
"""passbook core utils view"""
|
"""passbook core utils view"""
|
||||||
from django.contrib.auth.mixins import LoginRequiredMixin
|
|
||||||
from django.utils.translation import ugettext as _
|
from django.utils.translation import ugettext as _
|
||||||
from django.views.generic import TemplateView
|
from django.views.generic import TemplateView
|
||||||
|
|
||||||
|
@ -21,7 +20,7 @@ class LoadingView(TemplateView):
|
||||||
kwargs['target_url'] = self.get_url()
|
kwargs['target_url'] = self.get_url()
|
||||||
return super().get_context_data(**kwargs)
|
return super().get_context_data(**kwargs)
|
||||||
|
|
||||||
class PermissionDeniedView(LoginRequiredMixin, TemplateView):
|
class PermissionDeniedView(TemplateView):
|
||||||
"""Generic Permission denied view"""
|
"""Generic Permission denied view"""
|
||||||
|
|
||||||
template_name = 'login/denied.html'
|
template_name = 'login/denied.html'
|
||||||
|
|
Reference in a new issue