Browse Source

fix: 修改 import

pull/8041/head
ibuler 3 years ago committed by 老广
parent
commit
ffd98c6e3f
  1. 3
      apps/authentication/utils.py
  2. 2
      apps/terminal/api/terminal.py

3
apps/authentication/utils.py

@ -9,8 +9,7 @@ from django.conf import settings
from .notifications import DifferentCityLoginMessage
from audits.models import UserLoginLog
from audits.const import DEFAULT_CITY
from common.utils import get_request_ip
from common.utils import validate_ip, get_ip_city
from common.utils import validate_ip, get_ip_city, get_request_ip
from common.utils import get_logger
logger = get_logger(__file__)

2
apps/terminal/api/terminal.py

@ -12,7 +12,7 @@ from django.utils.translation import gettext_lazy as _
from common.exceptions import JMSException
from common.drf.api import JMSBulkModelViewSet
from common.utils import get_object_or_none
from common.utils import get_object_or_none, get_request_ip
from common.permissions import WithBootstrapToken
from ..models import Terminal
from .. import serializers

Loading…
Cancel
Save