Merge pull request #18124 from edx/jeskew/fix_some_django20_deprecation_warnings

Fix more Django 2.0 deprecation warnings around URLconfs.
This commit is contained in:
J Eskew
2018-05-08 16:29:12 -04:00
committed by GitHub
23 changed files with 47 additions and 26 deletions

View File

@@ -1,5 +1,6 @@
from django.conf.urls import include, url
app_name = 'entitlements'
urlpatterns = [
url(r'^v1/', include('entitlements.api.v1.urls', namespace='v1')),
url(r'^v1/', include('entitlements.api.v1.urls')),
]

View File

@@ -11,7 +11,7 @@ ENROLLMENTS_VIEW = EntitlementEnrollmentViewSet.as_view({
'delete': 'destroy',
})
app_name = 'v1'
urlpatterns = [
url(r'', include(router.urls)),
url(