Skip to content
Snippets Groups Projects
Commit 65094cbf authored by Awais Jibran's avatar Awais Jibran
Browse files

Handle deprecation warn by importing right class.

2900k/ last 7 days
parent 084b4096
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment