Skip to content

Commit 2b41019

Browse files
committed
README and a little minor code change
2 parents 3c14b98 + a155f5b commit 2b41019

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ You can also run the unit tests as follows::
548548
549549
python tests/run_tests.py
550550

551-
or
551+
or::
552552
553553
cd tests/
554554
./manage.py test djangosaml2
@@ -563,10 +563,12 @@ and it will run the tests in multiple versions of Python.
563563
Code Coverage
564564
=============
565565

566+
example::
567+
566568
cd tests/
567569
coverage erase
568570
coverage run ./manage.py test djangosaml2
569-
coverage report
571+
coverage report -m
570572

571573

572574
FAQ

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)