Skip to content

Commit 9be75fa

Browse files
authored
fix: removing circular import
1 parent 7b38435 commit 9be75fa

3 files changed

Lines changed: 2 additions & 11 deletions

File tree

common/djangoapps/student/views/management.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,9 @@
2525
from django.template.context_processors import csrf
2626
from django.urls import reverse
2727
from django.utils.translation import gettext as _
28-
from django.views.decorators.csrf import csrf_exempt, ensure_csrf_cookie # lint-amnesty, pylint: disable=unused-import
28+
from django.views.decorators.csrf import ensure_csrf_cookie # lint-amnesty, pylint: disable=unused-import # noqa: F401
2929
from django.views.decorators.http import ( # lint-amnesty, pylint: disable=unused-import
3030
require_GET,
31-
require_http_methods,
3231
require_POST,
3332
)
3433
from edx_ace import ace

common/djangoapps/third_party_auth/pipeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ def B(*args, **kwargs):
102102
from openedx.core.djangoapps.user_authn import cookies as user_authn_cookies
103103
from openedx.core.djangoapps.user_authn.toggles import is_auto_generated_username_enabled
104104
from openedx.core.djangoapps.user_authn.utils import is_safe_login_or_logout_redirect
105-
from openedx.core.djangoapps.user_authn.views.utils import get_auto_generated_username
106105

107106
from . import provider
108107

@@ -1010,6 +1009,7 @@ def get_username(strategy, details, backend, user=None, *args, **kwargs): # lin
10101009
slug_func = lambda val: val
10111010

10121011
if is_auto_generated_username_enabled() and details.get('username') is None:
1012+
from openedx.core.djangoapps.user_authn.views.utils import get_auto_generated_username # pylint: disable=import-outside-toplevel
10131013
username = get_auto_generated_username(details)
10141014
else:
10151015
if email_as_username and details.get('email'):

lms/envs/common.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2954,14 +2954,6 @@
29542954
USER_STATE_BATCH_SIZE = 5000
29552955

29562956
############## Plugin Django Apps #########################
2957-
2958-
from edx_django_utils.plugins import ( # pylint: disable=wrong-import-position,wrong-import-order
2959-
add_plugins,
2960-
get_plugin_apps
2961-
)
2962-
2963-
from openedx.core.djangoapps.plugins.constants import ProjectType, SettingsType # pylint: disable=wrong-import-position
2964-
29652957
INSTALLED_APPS.extend(get_plugin_apps(ProjectType.LMS))
29662958
add_plugins(__name__, ProjectType.LMS, SettingsType.COMMON)
29672959

0 commit comments

Comments
 (0)