From cc6e823fe6a9bde88e5625b3876ae424e1591372 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Behmo?= Date: Fri, 1 May 2020 00:03:07 +0200 Subject: [PATCH] Quiet courseware import warnings As it is explained in courseware/__init__.py: Importing 'lms.djangoapps.courseware' as 'courseware' is no longer supported This warning, while relevant, decreased the signal/noise ratio when investigating the lms logs. The "bulk_email" app was the only remaining app importing the courseware module incorrectly. All edx-platform modules and dependencies now follow the new convention. This is in part for CRI-196. --- lms/djangoapps/bulk_email/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/djangoapps/bulk_email/views.py b/lms/djangoapps/bulk_email/views.py index 5879b7411e..c3e5344f9f 100644 --- a/lms/djangoapps/bulk_email/views.py +++ b/lms/djangoapps/bulk_email/views.py @@ -11,7 +11,7 @@ from django.contrib.auth.models import User from django.http import Http404 from bulk_email.models import Optout -from courseware.courses import get_course_by_id +from lms.djangoapps.courseware.courses import get_course_by_id from edxmako.shortcuts import render_to_response from lms.djangoapps.discussion.notification_prefs.views import ( UsernameCipher,