diff --git a/django/contrib/gis/db/models/sql/query.py b/django/contrib/gis/db/models/sql/query.py index fc14271dd3..6995771cd6 100644 --- a/django/contrib/gis/db/models/sql/query.py +++ b/django/contrib/gis/db/models/sql/query.py @@ -1,6 +1,5 @@ from itertools import izip from django.db.models.query import sql -from django.db.models.fields import FieldDoesNotExist from django.db.models.fields.related import ForeignKey from django.contrib.gis.db.backend import SpatialBackend diff --git a/django/contrib/gis/db/models/sql/where.py b/django/contrib/gis/db/models/sql/where.py index ff6f45816c..838889fbad 100644 --- a/django/contrib/gis/db/models/sql/where.py +++ b/django/contrib/gis/db/models/sql/where.py @@ -1,5 +1,5 @@ from django.db import connection -from django.db.models.fields import Field +from django.db.models.fields import Field, FieldDoesNotExist from django.db.models.sql.constants import LOOKUP_SEP from django.db.models.sql.expressions import SQLEvaluator from django.db.models.sql.where import WhereNode