[ ] Have you linked each commit to their issue e.g. First line should contain text like IssueID #123 - Update dependencies for front-end:. The important bit is the start IssueID #123, this will create a reference in the issue, to the commit.
[ ] Have you set Reviewers, labels and Milestone?
Describe the bug
Newer versions of Django use path and re_path instead of url when declaring urlpatterns.
django-allauth finally migrated to this new format and it broke my code;
The list comprehension that adds the check_backend_access decorator to all of the django-allauth urlpatterns incorrectly assumed each one could be restructured as a regex. This lead to problems like this:
Checklist
IssueID #123 - Update dependencies for front-end:
. The important bit is the startIssueID #123
, this will create a reference in the issue, to the commit.Describe the bug
Newer versions of Django use
path
andre_path
instead ofurl
when declaringurlpatterns
.django-allauth
finally migrated to this new format and it broke my code;The list comprehension that adds the
check_backend_access
decorator to all of thedjango-allauth
urlpatterns incorrectly assumed each one could be restructured as a regex. This lead to problems like this:If both of these use
re_path
, then the 2nd one will never be matched!To Reproduce
Steps to reproduce the behavior:
Expected behavior
Rewrite the list comprehension that defines
conditional_backend_url_patterns
to take into account the different types of patterns.