Removed redundant condition in QuerySet.resolve_expression().

This commit is contained in:
Sergey Fedoseev 2017-08-15 18:44:27 +05:00 committed by Tim Graham
parent 6141040813
commit 6542999c54
1 changed files with 1 additions and 2 deletions

View File

@ -1136,7 +1136,6 @@ 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.')
query = self.query.resolve_expression(*args, **kwargs)
query._db = self._db