summaryrefslogtreecommitdiff
path: root/django/db/models/sql
diff options
context:
space:
mode:
authorAnssi Kääriäinen <akaariai@gmail.com>2013-11-09 14:25:15 +0200
committerTim Graham <timograham@gmail.com>2014-12-23 10:54:25 -0500
commitf233bf47dde1d481108142c8d6b4bb3b3d8c6d08 (patch)
treec96fdc0a4ee19bde709ff6dc4e6d35131e2c7463 /django/db/models/sql
parent6e08bde8c4525dda7d82bbf55b4b45a6e16213da (diff)
Fixed #21414 -- Removed RelatedObject and deprecated Field.related.
Diffstat (limited to 'django/db/models/sql')
-rw-r--r--django/db/models/sql/datastructures.py2
-rw-r--r--django/db/models/sql/query.py5
2 files changed, 3 insertions, 4 deletions
diff --git a/django/db/models/sql/datastructures.py b/django/db/models/sql/datastructures.py
index fc5ffc1790..a245e451d6 100644
--- a/django/db/models/sql/datastructures.py
+++ b/django/db/models/sql/datastructures.py
@@ -55,7 +55,7 @@ class Join(object):
# A list of 2-tuples to use in the ON clause of the JOIN.
# Each 2-tuple will create one join condition in the ON clause.
self.join_cols = join_field.get_joining_columns()
- # Along which field (or RelatedObject in the reverse join case)
+ # Along which field (or ForeignObjectRel in the reverse join case)
self.join_field = join_field
# Is this join nullabled?
self.nullable = nullable
diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py
index cad6372eea..44ece3fdd5 100644
--- a/django/db/models/sql/query.py
+++ b/django/db/models/sql/query.py
@@ -13,12 +13,11 @@ import warnings
from django.core.exceptions import FieldError
from django.db import connections, DEFAULT_DB_ALIAS
+from django.db.models.aggregates import Count
from django.db.models.constants import LOOKUP_SEP
from django.db.models.expressions import Col, Ref
from django.db.models.fields import FieldDoesNotExist
-from django.db.models.query_utils import Q, refs_aggregate
-from django.db.models.related import PathInfo
-from django.db.models.aggregates import Count
+from django.db.models.query_utils import PathInfo, Q, refs_aggregate
from django.db.models.sql.constants import (QUERY_TERMS, ORDER_DIR, SINGLE,
ORDER_PATTERN, SelectInfo, INNER, LOUTER)
from django.db.models.sql.datastructures import (