summaryrefslogtreecommitdiff
path: root/django/db/models/sql
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-02-01 19:54:20 -0500
committerTim Graham <timograham@gmail.com>2015-02-01 20:26:43 -0500
commit7580876fbdb05a2cfe016f49a49dc55b45f11011 (patch)
tree73a514c31aedd647aa95bb71e3fa5d4c5e9d3838 /django/db/models/sql
parent26e07a996d9ca34b6a2582bf4112cd27fb414959 (diff)
[1.8.x] Removed Query.raise_field_error()
This method was inadvertently reintroduced in f59fd15c4928caf3dfcbd50f6ab47be409a43b01 Backport of 99ca7c2bd3e04b343f4a0fe2d5add7c6d6f3a456 from master
Diffstat (limited to 'django/db/models/sql')
-rw-r--r--django/db/models/sql/query.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py
index 0d89de2458..6865624ec3 100644
--- a/django/db/models/sql/query.py
+++ b/django/db/models/sql/query.py
@@ -1408,11 +1408,6 @@ class Query(object):
break
return path, final_field, targets, names[pos + 1:]
- def raise_field_error(self, opts, name):
- available = list(get_field_names_from_opts(opts)) + list(self.annotation_select)
- raise FieldError("Cannot resolve keyword %r into field. "
- "Choices are: %s" % (name, ", ".join(available)))
-
def setup_joins(self, names, opts, alias, can_reuse=None, allow_many=True):
"""
Compute the necessary table joins for the passage through the fields