From 31bef51d8ea5e3bf650de1495ae1f0566670b8f3 Mon Sep 17 00:00:00 2001 From: Nick Pope Date: Mon, 5 Apr 2021 00:30:32 +0100 Subject: [PATCH] Moved unnecessary inner import in GeoIP2.geos(). --- django/contrib/gis/geoip2/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/gis/geoip2/base.py b/django/contrib/gis/geoip2/base.py index 6b35a8acdc..7d17766c25 100644 --- a/django/contrib/gis/geoip2/base.py +++ b/django/contrib/gis/geoip2/base.py @@ -3,6 +3,7 @@ import socket import geoip2.database from django.conf import settings +from django.contrib.gis.geos import Point from django.core.exceptions import ValidationError from django.core.validators import validate_ipv46_address from django.utils._os import to_path @@ -210,7 +211,6 @@ class GeoIP2: "Return a GEOS Point object for the given query." ll = self.lon_lat(query) if ll: - from django.contrib.gis.geos import Point return Point(ll, srid=4326) else: return None