From f6997f28427e326876433d3c57918e188a165de3 Mon Sep 17 00:00:00 2001
From: Alex Dusenbery <adusenbery@edx.org>
Date: Thu, 12 Apr 2018 15:41:03 -0400
Subject: [PATCH] Remove unused imports in user_api.models

---
 openedx/core/djangoapps/user_api/models.py                     | 1 -
 openedx/core/djangoapps/user_api/preferences/tests/test_api.py | 3 ++-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/openedx/core/djangoapps/user_api/models.py b/openedx/core/djangoapps/user_api/models.py
index 719748a40e7..77f48460caa 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 297498b64da..4109aa583f0 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,
-- 
GitLab