mirror of
https://github.com/django/django.git
synced 2025-02-05 15:06:48 +00:00
[1.8.x] Removed Query.raise_field_error()
This method was inadvertently reintroduced in f59fd15c4928caf3dfcbd50f6ab47be409a43b01 Backport of 99ca7c2bd3e04b343f4a0fe2d5add7c6d6f3a456 from master
This commit is contained in:
parent
26e07a996d
commit
7580876fbd
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user