Skip to content

Commit

Permalink
chore: Resolve RemovedInDjango40Warning warnings. (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
christopappas authored Nov 1, 2021
1 parent 5e83b4e commit 94093bd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ Unreleased

*

[4.0.1] - 2021-11-01
--------------------

Changed
~~~~~~~

* Resolve RemovedInDjango4.0 warnings.


[4.0.0] - 2021-08-05
--------------------

Expand Down
2 changes: 1 addition & 1 deletion auth_backends/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 4 additions & 4 deletions auth_backends/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
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,
EdxOAuth2LogoutView,
)

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')),
]

0 comments on commit 94093bd

Please sign in to comment.