diff --git a/openedx/core/djangoapps/user_api/models.py b/openedx/core/djangoapps/user_api/models.py index 719748a40e7ec911391516dd392936894fdf4c22..77f48460caac564ff12307993a3091485b850168 100644 --- a/openedx/core/djangoapps/user_api/models.py +++ b/openedx/core/djangoapps/user_api/models.py @@ -15,7 +15,6 @@ from opaque_keys.edx.django.models import CourseKeyField # but currently the rest of the system assumes that "student" defines # certain models. For now we will leave the models in "student" and # create an alias in "user_api". -from student.models import PendingEmailChange, Registration, UserProfile # pylint: disable=unused-import from util.model_utils import emit_setting_changed_event, get_changed_fields_dict diff --git a/openedx/core/djangoapps/user_api/preferences/tests/test_api.py b/openedx/core/djangoapps/user_api/preferences/tests/test_api.py index 297498b64dadd87da08e973389d1935f549cef42..4109aa583f032cfc0e080ef604a8d162b5556858 100644 --- a/openedx/core/djangoapps/user_api/preferences/tests/test_api.py +++ b/openedx/core/djangoapps/user_api/preferences/tests/test_api.py @@ -14,6 +14,7 @@ from dateutil.parser import parse as parse_datetime from openedx.core.djangolib.testing.utils import CacheIsolationTestCase, skip_unless_lms from openedx.core.lib.time_zone_utils import get_display_time_zone +from student.models import UserProfile from student.tests.factories import UserFactory from xmodule.modulestore.tests.django_utils import ModuleStoreTestCase @@ -27,7 +28,7 @@ from ...errors import ( PreferenceUpdateError, CountryCodeError, ) -from ...models import UserProfile, UserOrgTag +from ...models import UserOrgTag from ...preferences.api import ( get_user_preference, get_user_preferences,