Removed redundant condition in QuerySet.resolve_expression().
This commit is contained in:
parent
6141040813
commit
6542999c54
|
@ -1136,8 +1136,7 @@ class QuerySet:
|
|||
if self._fields and len(self._fields) > 1:
|
||||
# values() queryset can only be used as nested queries
|
||||
# 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._db = self._db
|
||||
return query
|
||||
|
|
Loading…
Reference in New Issue