Merge pull request #23402 from edx/logs-cleanup

Handle deprecation warn by importing right class.
This commit is contained in:
Awais Jibran
2020-03-13 23:55:08 +05:00
committed by GitHub
2 changed files with 2 additions and 3 deletions

View File

@@ -13,8 +13,7 @@ from django.db import connection
from django.http import HttpResponse
from django.urls import reverse
from django.utils.deprecation import MiddlewareMixin
from opaque_keys.edx.keys import CourseKey, UsageKey
from opaque_keys.edx.locations import i4xEncoder
from opaque_keys.edx.keys import CourseKey, i4xEncoder, UsageKey
from pytz import UTC
from six import text_type
from six.moves import map

View File

@@ -14,7 +14,7 @@ import ddt
from celery.states import FAILURE, SUCCESS
from django.utils.translation import ugettext_noop
from mock import MagicMock, Mock, patch
from opaque_keys.edx.locations import i4xEncoder
from opaque_keys.edx.keys import i4xEncoder
from six.moves import range
from course_modes.models import CourseMode