mirror of
https://github.com/django/django.git
synced 2024-12-23 17:46:27 +00:00
Removed redundant condition in QuerySet.resolve_expression().
This commit is contained in:
parent
6141040813
commit
6542999c54
@ -1136,7 +1136,6 @@ class QuerySet:
|
|||||||
if self._fields and len(self._fields) > 1:
|
if self._fields and len(self._fields) > 1:
|
||||||
# values() queryset can only be used as nested queries
|
# values() queryset can only be used as nested queries
|
||||||
# if they are set up to select only a single field.
|
# if they are set up to select only a single field.
|
||||||
if len(self._fields) > 1:
|
|
||||||
raise TypeError('Cannot use multi-field values as a filter value.')
|
raise TypeError('Cannot use multi-field values as a filter value.')
|
||||||
query = self.query.resolve_expression(*args, **kwargs)
|
query = self.query.resolve_expression(*args, **kwargs)
|
||||||
query._db = self._db
|
query._db = self._db
|
||||||
|
Loading…
Reference in New Issue
Block a user