Skip to content

Commit

Permalink
fix: fix django4 deprecation warnings (#32948)
Browse files Browse the repository at this point in the history
  • Loading branch information
UsamaSadiq authored Aug 16, 2023
1 parent 595c94b commit 4dea331
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
1 change: 0 additions & 1 deletion lms/djangoapps/instructor_task/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# lint-amnesty, pylint: disable=missing-module-docstring
default_app_config = 'lms.djangoapps.instructor_task.apps.InstructorTaskConfig'
2 changes: 1 addition & 1 deletion lms/djangoapps/instructor_task/rest_api/urls.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Instructor Task Django app root REST API URLs.
"""
from django.conf.urls import include
from django.urls import include
from django.urls import path

from lms.djangoapps.instructor_task.rest_api.v1 import urls as v1_urls
Expand Down
3 changes: 2 additions & 1 deletion lms/djangoapps/learner_home/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Learner Home URL routing configuration
"""

from django.urls import path
from django.urls import include, re_path

from lms.djangoapps.learner_home import views
Expand All @@ -11,5 +12,5 @@
# Learner Dashboard Routing
urlpatterns = [
re_path(r"^init/?", views.InitializeView.as_view(), name="initialize"),
re_path(r"^mock/", include("lms.djangoapps.learner_home.mock.urls")),
path("mock/", include("lms.djangoapps.learner_home.mock.urls")),
]
19 changes: 10 additions & 9 deletions lms/djangoapps/learner_recommendations/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"""

from django.conf import settings
from django.urls import path
from django.urls import re_path

from lms.djangoapps.learner_recommendations import views
Expand All @@ -16,16 +17,16 @@
re_path(fr'^cross_product/{settings.COURSE_ID_PATTERN}/$',
views.CrossProductRecommendationsView.as_view(),
name='cross_product_recommendations'),
re_path(r'^product_recommendations/$',
views.ProductRecommendationsView.as_view(),
name='product_recommendations_amplitude_only'),
path('product_recommendations/',
views.ProductRecommendationsView.as_view(),
name='product_recommendations_amplitude_only'),
re_path(fr'^product_recommendations/{settings.COURSE_ID_PATTERN}/$',
views.ProductRecommendationsView.as_view(),
name='product_recommendations'),
re_path(r"^courses/$",
views.DashboardRecommendationsApiView.as_view(),
name="courses"),
re_path(r'^recommendations_context/$',
views.RecommendationsContextView.as_view(),
name='recommendations_context'),
path("courses/",
views.DashboardRecommendationsApiView.as_view(),
name="courses"),
path('recommendations_context/',
views.RecommendationsContextView.as_view(),
name='recommendations_context'),
]
2 changes: 1 addition & 1 deletion lms/djangoapps/ora_staff_grader/urls.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
URLs for Enhanced Staff Grader (ESG) backend-for-frontend (BFF)
"""
from django.conf.urls import include
from django.urls import include
from django.urls import path


Expand Down

0 comments on commit 4dea331

Please sign in to comment.