mirror of https://github.com/zulip/zulip.git
decorator: Remove unnecesary import.
This commit is contained in:
parent
2aab6e0f49
commit
ffafa05bd5
|
@ -6,7 +6,7 @@ from django.contrib.auth import REDIRECT_FIELD_NAME, login as django_login
|
||||||
from django.views.decorators.csrf import csrf_exempt
|
from django.views.decorators.csrf import csrf_exempt
|
||||||
from django.http import QueryDict, HttpResponseNotAllowed, HttpRequest
|
from django.http import QueryDict, HttpResponseNotAllowed, HttpRequest
|
||||||
from django.http.multipartparser import MultiPartParser
|
from django.http.multipartparser import MultiPartParser
|
||||||
from zerver.models import UserProfile, get_client, get_user_profile_by_email
|
from zerver.models import UserProfile, get_client
|
||||||
from zerver.lib.response import json_error, json_unauthorized, json_success
|
from zerver.lib.response import json_error, json_unauthorized, json_success
|
||||||
from django.shortcuts import resolve_url
|
from django.shortcuts import resolve_url
|
||||||
from django.utils.decorators import available_attrs
|
from django.utils.decorators import available_attrs
|
||||||
|
|
|
@ -15,7 +15,7 @@ from django.core import validators
|
||||||
from zerver.models import UserProfile, Realm, PreregistrationUser, \
|
from zerver.models import UserProfile, Realm, PreregistrationUser, \
|
||||||
name_changes_disabled, email_to_username, \
|
name_changes_disabled, email_to_username, \
|
||||||
completely_open, get_unique_open_realm, email_allowed_for_realm, \
|
completely_open, get_unique_open_realm, email_allowed_for_realm, \
|
||||||
get_realm, get_realm_by_email_domain
|
get_realm, get_realm_by_email_domain, get_user_profile_by_email
|
||||||
from zerver.lib.send_email import send_email, FromAddress
|
from zerver.lib.send_email import send_email, FromAddress
|
||||||
from zerver.lib.events import do_events_register
|
from zerver.lib.events import do_events_register
|
||||||
from zerver.lib.actions import do_change_password, do_change_full_name, do_change_is_admin, \
|
from zerver.lib.actions import do_change_password, do_change_full_name, do_change_is_admin, \
|
||||||
|
@ -26,7 +26,7 @@ from zerver.forms import RegistrationForm, HomepageForm, RealmCreationForm, \
|
||||||
CreateUserForm, FindMyTeamForm
|
CreateUserForm, FindMyTeamForm
|
||||||
from django_auth_ldap.backend import LDAPBackend, _LDAPUser
|
from django_auth_ldap.backend import LDAPBackend, _LDAPUser
|
||||||
from zerver.decorator import require_post, has_request_variables, \
|
from zerver.decorator import require_post, has_request_variables, \
|
||||||
JsonableError, get_user_profile_by_email, REQ, do_login
|
JsonableError, REQ, do_login
|
||||||
from zerver.lib.onboarding import send_initial_pms, setup_initial_streams, \
|
from zerver.lib.onboarding import send_initial_pms, setup_initial_streams, \
|
||||||
setup_initial_private_stream, send_initial_realm_messages
|
setup_initial_private_stream, send_initial_realm_messages
|
||||||
from zerver.lib.response import json_success
|
from zerver.lib.response import json_success
|
||||||
|
|
Loading…
Reference in New Issue