Skip to content

Commit a155f5b

Browse files
authored
code style, less is more
1 parent 978d6c1 commit a155f5b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

djangosaml2/views.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,7 @@ def post(self,
278278
SAML Authorization Response endpoint
279279
"""
280280
attribute_mapping = attribute_mapping or get_custom_setting('SAML_ATTRIBUTE_MAPPING', {'uid': ('username', )})
281-
create_unknown_user = create_unknown_user if create_unknown_user is not None else \
282-
get_custom_setting('SAML_CREATE_UNKNOWN_USER', True)
281+
create_unknown_user = create_unknown_user or get_custom_setting('SAML_CREATE_UNKNOWN_USER', True)
283282
conf = get_config(config_loader_path, request)
284283
try:
285284
xmlstr = request.POST['SAMLResponse']

0 commit comments

Comments
 (0)