Skip to content

Commit

Permalink
Rephrase documentation header
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyklay committed Nov 21, 2021
1 parent 7defe30 commit 509cf77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/tips.rst
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ You can use something like this to handle similar cases.
ADMINS = tuple(parseaddr(email) for email in env.list('DJANGO_ADMINS'))
Complex format for dicts
========================
Complex dict format
===================

Sometimes we need to get a bit more complex dict type than usual. For example,
consider Djangosaml2's ``SAML_ATTRIBUTE_MAPPING``:
Expand Down Expand Up @@ -162,7 +162,7 @@ A dict of this format can be obtained as shown below:
# {'uid': ('username',), 'mail': ('email',), 'cn': ('first_name',), 'sn': ('last_name',)}
SAML_ATTRIBUTE_MAPPING = env.dict(
'SAML_ATTRIBUTE_MAPPING',
cast={"value": tuple},
cast={'value': tuple},
default={}
)
Expand Down

0 comments on commit 509cf77

Please sign in to comment.