From 25a5d8f5daa8b9c81e64495ba3d65b0f54896937 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 21 Mar 2019 14:53:38 +0100 Subject: [PATCH] Don't use LoginRequired for PermissionDenied View --- passbook/core/views/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/passbook/core/views/utils.py b/passbook/core/views/utils.py index f1dc747a7..d73199cee 100644 --- a/passbook/core/views/utils.py +++ b/passbook/core/views/utils.py @@ -1,5 +1,4 @@ """passbook core utils view""" -from django.contrib.auth.mixins import LoginRequiredMixin from django.utils.translation import ugettext as _ from django.views.generic import TemplateView @@ -21,7 +20,7 @@ class LoadingView(TemplateView): kwargs['target_url'] = self.get_url() return super().get_context_data(**kwargs) -class PermissionDeniedView(LoginRequiredMixin, TemplateView): +class PermissionDeniedView(TemplateView): """Generic Permission denied view""" template_name = 'login/denied.html'