Skip to content

Commit 94093bd

Browse files
chore: Resolve RemovedInDjango40Warning warnings. (#144)
1 parent 5e83b4e commit 94093bd

3 files changed

Lines changed: 14 additions & 5 deletions

File tree

CHANGELOG.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@ Unreleased
1414

1515
*
1616

17+
[4.0.1] - 2021-11-01
18+
--------------------
19+
20+
Changed
21+
~~~~~~~
22+
23+
* Resolve RemovedInDjango4.0 warnings.
24+
25+
1726
[4.0.0] - 2021-08-05
1827
--------------------
1928

auth_backends/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
These package is designed to be used primarily with Open edX Django projects, but should be compatible with non-edX
44
projects as well.
55
"""
6-
__version__ = '4.0.0' # pragma: no cover
6+
__version__ = '4.0.1' # pragma: no cover

auth_backends/urls.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
33
Add these to your project's `urlpatterns` to avoid duplicating code.
44
"""
5-
from django.conf.urls import url, include
5+
from django.urls import include, re_path
66

77
from auth_backends.views import (
88
EdxOAuth2LoginView,
99
EdxOAuth2LogoutView,
1010
)
1111

1212
oauth2_urlpatterns = [
13-
url(r'^login/$', EdxOAuth2LoginView.as_view(), name='login'),
14-
url(r'^logout/$', EdxOAuth2LogoutView.as_view(), name='logout'),
15-
url('', include('social_django.urls', namespace='social')),
13+
re_path(r'^login/$', EdxOAuth2LoginView.as_view(), name='login'),
14+
re_path(r'^logout/$', EdxOAuth2LogoutView.as_view(), name='logout'),
15+
re_path('', include('social_django.urls', namespace='social')),
1616
]

0 commit comments

Comments
 (0)