From 87216d360da87d5ad95d1a121b18cafdd9ff94ff Mon Sep 17 00:00:00 2001 From: Usama Sadiq Date: Wed, 16 Aug 2023 17:07:09 +0500 Subject: [PATCH] fix: fix django4 deprecation warnings (#32978) --- openedx/core/djangoapps/ace_common/__init__.py | 1 - openedx/core/djangoapps/api_admin/api/urls.py | 2 +- openedx/core/djangoapps/catalog/__init__.py | 1 - openedx/core/djangoapps/course_date_signals/__init__.py | 2 -- openedx/core/djangoapps/discussions/__init__.py | 1 - openedx/core/djangoapps/external_user_ids/__init__.py | 1 - openedx/features/calendar_sync/__init__.py | 1 - 7 files changed, 1 insertion(+), 8 deletions(-) diff --git a/openedx/core/djangoapps/ace_common/__init__.py b/openedx/core/djangoapps/ace_common/__init__.py index c4dc3579bc..fa59cbe49a 100644 --- a/openedx/core/djangoapps/ace_common/__init__.py +++ b/openedx/core/djangoapps/ace_common/__init__.py @@ -3,4 +3,3 @@ ace_common is a Django App that provides common utilities and templates for edx-platform applications that use ACE as their messaging framework. """ -default_app_config = 'openedx.core.djangoapps.ace_common.apps.AceCommonConfig' # pylint: disable=invalid-name diff --git a/openedx/core/djangoapps/api_admin/api/urls.py b/openedx/core/djangoapps/api_admin/api/urls.py index 241d7c64ab..81bc986805 100644 --- a/openedx/core/djangoapps/api_admin/api/urls.py +++ b/openedx/core/djangoapps/api_admin/api/urls.py @@ -3,7 +3,7 @@ URL definitions for api access request API. """ -from django.conf.urls import include +from django.urls import include from django.urls import path app_name = 'api_admin' diff --git a/openedx/core/djangoapps/catalog/__init__.py b/openedx/core/djangoapps/catalog/__init__.py index 18e5699c64..4190368768 100644 --- a/openedx/core/djangoapps/catalog/__init__.py +++ b/openedx/core/djangoapps/catalog/__init__.py @@ -1,2 +1 @@ # lint-amnesty, pylint: disable=missing-module-docstring -default_app_config = 'openedx.core.djangoapps.catalog.apps.CatalogConfig' diff --git a/openedx/core/djangoapps/course_date_signals/__init__.py b/openedx/core/djangoapps/course_date_signals/__init__.py index 4d9e1da841..fe6be207a6 100644 --- a/openedx/core/djangoapps/course_date_signals/__init__.py +++ b/openedx/core/djangoapps/course_date_signals/__init__.py @@ -1,5 +1,3 @@ """ Django app to manage course content dates, and ingesting them into edx-when for later use by the LMS. """ - -default_app_config = 'openedx.core.djangoapps.course_date_signals.apps.CourseDatesSignalsConfig' # pylint: disable=invalid-name diff --git a/openedx/core/djangoapps/discussions/__init__.py b/openedx/core/djangoapps/discussions/__init__.py index 7aac22d8e4..db3b0202e9 100644 --- a/openedx/core/djangoapps/discussions/__init__.py +++ b/openedx/core/djangoapps/discussions/__init__.py @@ -1,4 +1,3 @@ """ Handle discussions integrations """ -default_app_config = 'openedx.core.djangoapps.discussions.apps.DiscussionsConfig' diff --git a/openedx/core/djangoapps/external_user_ids/__init__.py b/openedx/core/djangoapps/external_user_ids/__init__.py index dbf6fe4b2d..ad8c14e613 100644 --- a/openedx/core/djangoapps/external_user_ids/__init__.py +++ b/openedx/core/djangoapps/external_user_ids/__init__.py @@ -4,4 +4,3 @@ edX Platform support for external user IDs. This package will be used to support generating external User IDs to be shared with outside parties. """ -default_app_config = 'openedx.core.djangoapps.external_user_ids.apps.ExternalUserIDConfig' diff --git a/openedx/features/calendar_sync/__init__.py b/openedx/features/calendar_sync/__init__.py index 5696374dc7..e1d3fad24c 100644 --- a/openedx/features/calendar_sync/__init__.py +++ b/openedx/features/calendar_sync/__init__.py @@ -1,7 +1,6 @@ """ Calendar syncing Course dates with a User. """ -default_app_config = 'openedx.features.calendar_sync.apps.UserCalendarSyncConfig' def get_calendar_event_id(user, block_key, date_type, hostname):