Handle deprecation warn by importing right class.
2900k/ last 7 days
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user