This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2018-12-09 20:07:18 +00:00
|
|
|
"""passbook core utils view"""
|
|
|
|
from django.utils.translation import ugettext as _
|
|
|
|
from django.views.generic import TemplateView
|
|
|
|
|
|
|
|
|
2019-03-21 13:53:38 +00:00
|
|
|
class PermissionDeniedView(TemplateView):
|
2018-12-11 14:29:58 +00:00
|
|
|
"""Generic Permission denied view"""
|
|
|
|
|
2019-12-31 11:51:16 +00:00
|
|
|
template_name = "login/denied.html"
|
|
|
|
title = _("Permission denied.")
|
2018-12-11 14:29:58 +00:00
|
|
|
|
|
|
|
def get_context_data(self, **kwargs):
|
2019-12-31 11:51:16 +00:00
|
|
|
kwargs["title"] = self.title
|
2018-12-11 14:29:58 +00:00
|
|
|
return super().get_context_data(**kwargs)
|