-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Django to 4.2, start splitting ajapaik into different apps
- Loading branch information
1 parent
d49f75e
commit 37c8070
Showing
102 changed files
with
4,089 additions
and
3,911 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
from allauth.account.adapter import DefaultAccountAdapter | ||
from django.conf import settings | ||
from django.utils.http import is_safe_url | ||
from django.utils.http import url_has_allowed_host_and_scheme | ||
|
||
|
||
class safeUrlAdapter(DefaultAccountAdapter): | ||
def is_safe_url(self, url): | ||
return is_safe_url(url, allowed_hosts=settings.ALLOWED_HOSTS) | ||
return url_has_allowed_host_and_scheme(url, allowed_hosts=settings.ALLOWED_HOSTS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.