Skip to content

Commit

Permalink
Adds getattr in settings call
Browse files Browse the repository at this point in the history
  • Loading branch information
iMerica committed Jan 9, 2022
1 parent 190581e commit 2467843
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dj_rest_auth/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def save(self, request, **kwargs):
args=[user_pk_to_url_str(user), temp_key],
)

if settings.REST_AUTH_PW_RESET_USE_SITES_DOMAIN is True:
if getattr(settings, 'REST_AUTH_PW_RESET_USE_SITES_DOMAIN', False) is True:
url = build_absolute_uri(None, path)
else:
url = build_absolute_uri(request, path)
Expand Down

0 comments on commit 2467843

Please sign in to comment.