Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Django 3.0 Deprecation warning for is_safe_url #2442

Closed
wants to merge 1 commit into from

Conversation

adamchainz
Copy link
Contributor

Fix this warning on Django 3.0:

/.../lib/python3.7/site-packages/allauth/account/adapter.py:416: RemovedInDjango40Warning: django.utils.http.is_safe_url() is deprecated in favor of url_has_allowed_host_and_scheme().
    return is_safe_url(url, allowed_hosts=None)

Submitting Pull Requests

General

  • Make sure you use semantic commit messages.
    Examples: "fix(google): Fixed foobar bug", "feat(accounts): Added foobar feature".
  • All Python code must be 100% pep8 and isort clean.
  • JavaScript code should adhere to StandardJS.
  • If your changes are significant, please update ChangeLog.rst.
  • Feel free to add yourself to AUTHORS.

Provider Specifics

n/a

Fix this warning on Django 3.0:

```
/.../lib/python3.7/site-packages/allauth/account/adapter.py:416: RemovedInDjango40Warning: django.utils.http.is_safe_url() is deprecated in favor of url_has_allowed_host_and_scheme().
    return is_safe_url(url, allowed_hosts=None)
```
@adamchainz
Copy link
Contributor Author

This has been copied by #2434 which got merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant