diff options
| author | Tim Graham <timograham@gmail.com> | 2015-02-01 19:54:20 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-02-01 20:26:04 -0500 |
| commit | 99ca7c2bd3e04b343f4a0fe2d5add7c6d6f3a456 (patch) | |
| tree | 867d4ea46b22a4e1fee4ab2a8923de5d50c267b0 | |
| parent | 327a00f48b71b5f82788f3c9ee3cdb25b8e1ef1a (diff) | |
Removed Query.raise_field_error()
This method was inadvertently reintroduced in
f59fd15c4928caf3dfcbd50f6ab47be409a43b01
| -rw-r--r-- | django/db/models/sql/query.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py index b5ece24a0e..54ca929a85 100644 --- a/django/db/models/sql/query.py +++ b/django/db/models/sql/query.py @@ -1390,11 +1390,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 |
