diff --git a/djangosaml2/views.py b/djangosaml2/views.py index c8c30320..34b77761 100644 --- a/djangosaml2/views.py +++ b/djangosaml2/views.py @@ -110,9 +110,20 @@ class LoginView(SPConfigMixin, View): will be rendered. """ - wayf_template = getattr(settings,'SAML2_CUSTOM_WAYF_TEMPLATE','djangosaml2/wayf.html') - authorization_error_template = getattr(settings,'SAML2_CUSTOM_AUTHORIZATION_ERROR_TEMPLATE','djangosaml2/auth_error.html') - post_binding_form_template = getattr(settings,'SAML2_CUSTOM_POST_BINDING_FORM_TEMPLATE','djangosaml2/post_binding_form.html') + wayf_template = getattr( + settings, + 'SAML2_CUSTOM_WAYF_TEMPLATE','djangosaml2/wayf.html' + ) + authorization_error_template = getattr( + settings, + 'SAML2_CUSTOM_AUTHORIZATION_ERROR_TEMPLATE', + 'djangosaml2/auth_error.html' + ) + post_binding_form_template = getattr( + settings, + 'SAML2_CUSTOM_POST_BINDING_FORM_TEMPLATE', + 'djangosaml2/post_binding_form.html' + ) def get_next_path(self, request: HttpRequest) -> str: ''' Returns the path to put in the RelayState to redirect the user to after having logged in. diff --git a/setup.py b/setup.py index 39814281..7052a843 100644 --- a/setup.py +++ b/setup.py @@ -24,7 +24,7 @@ def read(*rnames): setup( name='djangosaml2', - version='1.3.2', + version='1.3.3', description='pysaml2 integration for Django', long_description=read('README.md'), long_description_content_type='text/markdown',