summaryrefslogtreecommitdiff
path: root/django/contrib/gis/db/models/sql/where.py
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2012-09-08 19:51:36 -0400
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2012-09-08 19:51:36 -0400
commitc4aa26a983c91b1ec015fe0552077847116dfab7 (patch)
treeda105a932b737c0f42504a2bdf236178afe25160 /django/contrib/gis/db/models/sql/where.py
parenta78dd109e6c81c49e90e36e9b793bad67c46c23c (diff)
Internal refactoring; moving LOOKUP_SEP up one level.
In an ideal world, nothing except django.db.models.query should have to import stuff from django.models.sql.*. A few things were needing to get hold of sql.constants.LOOKUP_SEP, so this commit moves it up to django.db.models.constants.LOOKUP_SEP. There are still a couple of places (admin) poking into sql.* to get QUERY_TERMS, which is unfortunate, but a slightly different issue and harder to adjust.
Diffstat (limited to 'django/contrib/gis/db/models/sql/where.py')
-rw-r--r--django/contrib/gis/db/models/sql/where.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/gis/db/models/sql/where.py b/django/contrib/gis/db/models/sql/where.py
index 0e152221ac..ec078aebed 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.models.constants import LOOKUP_SEP
from django.db.models.fields import 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 Constraint, WhereNode
from django.contrib.gis.db.models.fields import GeometryField