diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 6dc4c7a4..5a241418 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -14,6 +14,15 @@ Unreleased * +[4.0.1] - 2021-11-01 +-------------------- + +Changed +~~~~~~~ + +* Resolve RemovedInDjango4.0 warnings. + + [4.0.0] - 2021-08-05 -------------------- diff --git a/auth_backends/__init__.py b/auth_backends/__init__.py index 0b655089..d530a938 100644 --- a/auth_backends/__init__.py +++ b/auth_backends/__init__.py @@ -3,4 +3,4 @@ These package is designed to be used primarily with Open edX Django projects, but should be compatible with non-edX projects as well. """ -__version__ = '4.0.0' # pragma: no cover +__version__ = '4.0.1' # pragma: no cover diff --git a/auth_backends/urls.py b/auth_backends/urls.py index 7f5bb0b2..7b85b350 100644 --- a/auth_backends/urls.py +++ b/auth_backends/urls.py @@ -2,7 +2,7 @@ Add these to your project's `urlpatterns` to avoid duplicating code. """ -from django.conf.urls import url, include +from django.urls import include, re_path from auth_backends.views import ( EdxOAuth2LoginView, @@ -10,7 +10,7 @@ ) oauth2_urlpatterns = [ - url(r'^login/$', EdxOAuth2LoginView.as_view(), name='login'), - url(r'^logout/$', EdxOAuth2LogoutView.as_view(), name='logout'), - url('', include('social_django.urls', namespace='social')), + re_path(r'^login/$', EdxOAuth2LoginView.as_view(), name='login'), + re_path(r'^logout/$', EdxOAuth2LogoutView.as_view(), name='logout'), + re_path('', include('social_django.urls', namespace='social')), ]