summaryrefslogtreecommitdiff
path: root/django/db/models/sql/expressions.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/db/models/sql/expressions.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/db/models/sql/expressions.py')
-rw-r--r--django/db/models/sql/expressions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/sql/expressions.py b/django/db/models/sql/expressions.py
index 1bbf742b5c..ac8fea6da3 100644
--- a/django/db/models/sql/expressions.py
+++ b/django/db/models/sql/expressions.py
@@ -1,6 +1,6 @@
from django.core.exceptions import FieldError
+from django.db.models.constants import LOOKUP_SEP
from django.db.models.fields import FieldDoesNotExist
-from django.db.models.sql.constants import LOOKUP_SEP
class SQLEvaluator(object):
def __init__(self, expression, query, allow_joins=True):