Skip to content

Commit

Permalink
chore: Resolve RemovedInDjango4.0 warnings. (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
christopappas authored Nov 1, 2021
1 parent 8aa8dc6 commit da64959
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 8 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ Change Log
Unreleased
----------

[8.0.1] - 2021-11-01
--------------------

Changed
~~~~~~~

* Resolve RemovedInDjango4.0 warnings.


[8.0.0] - 2021-09-30
--------------------

Expand Down
4 changes: 2 additions & 2 deletions csrf/api/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
URL definitions for the CSRF API endpoints.
"""

from django.conf.urls import include, url
from django.urls import include, re_path


urlpatterns = [
url(r'^v1/', include('csrf.api.v1.urls'), name='csrf_api_v1'),
re_path(r'^v1/', include('csrf.api.v1.urls'), name='csrf_api_v1'),
]
4 changes: 2 additions & 2 deletions csrf/api/v1/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
URL definitions for version 1 of the CSRF API.
"""

from django.conf.urls import url
from django.urls import re_path

from .views import CsrfTokenView


urlpatterns = [
url(r'^token$', CsrfTokenView.as_view(), name='csrf_token'),
re_path(r'^token$', CsrfTokenView.as_view(), name='csrf_token'),
]
4 changes: 2 additions & 2 deletions csrf/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
URLs for the CSRF application.
"""

from django.conf.urls import include, url
from django.urls import include, re_path


urlpatterns = [
url(r'^csrf/api/', include('csrf.api.urls'), name='csrf_api'),
re_path(r'^csrf/api/', include('csrf.api.urls'), name='csrf_api'),
]
2 changes: 1 addition & 1 deletion edx_rest_framework_extensions/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
""" edx Django REST Framework extensions. """

__version__ = '8.0.0' # pragma: no cover
__version__ = '8.0.1' # pragma: no cover
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
from unittest.mock import ANY, patch

import ddt
from django.conf.urls import url as url_pattern
from django.http.cookie import SimpleCookie
from django.test import Client, RequestFactory, TestCase, override_settings
from django.urls import re_path as url_pattern
from django.utils.deprecation import MiddlewareMixin
from edx_django_utils.cache import RequestCache
from rest_framework.authentication import SessionAuthentication
Expand Down

0 comments on commit da64959

Please sign in to comment.