Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Improve code formatting, remove obsolete comments

akjanike1d1f16a48ee
diff --git a/saleor/core/views.py b/saleor/core/views.py
index 78cdf929a6..d2f1c0c72e 100644
--- a/saleor/core/views.py
+++ b/saleor/core/views.py
@@ -26,8 +26,8 @@ def styleguide(request):
def impersonate(request, uid):
response = orig_impersonate(request, uid)
if request.session.modified:
- msg = pgettext_lazy('Impersonation message',
- 'You are now logged as {}'.format(
- User.objects.get(pk=uid)))
+ msg = pgettext_lazy(
+ 'Impersonation message',
+ 'You are now logged as {}'.format(User.objects.get(pk=uid)))
messages.success(request, msg)
return response
diff --git a/saleor/settings.py b/saleor/settings.py
index 83ae3fb93e..d0393cf1b3 100644
--- a/saleor/settings.py
+++ b/saleor/settings.py
@@ -417,9 +417,8 @@ CELERY_TASK_SERIALIZER = 'json'
CELERY_RESULT_SERIALIZER = 'json'
CELERY_RESULT_BACKEND = 'django-db'
-# IMPERSONATE SETTINGS
+# Impersonate module settings
IMPERSONATE_URI_EXCLUSIONS = [r'^dashboard/']
IMPERSONATE_CUSTOM_USER_QUERYSET = 'saleor.userprofile.impersonate.get_impersonatable_users'
-# IMPERSONATE_REDIRECT_URL = '/?action=' + IMPERSONATE_GET_PARAM
IMPERSONATE_USE_HTTP_REFERER = True
IMPERSONATE_CUSTOM_ALLOW = 'saleor.userprofile.impersonate.can_impersonate'