mirror of
https://github.com/django/django.git
synced 2025-08-22 19:44:44 +00:00
Fixed #20989 -- Removed useless explicit list comprehensions.
This commit is contained in:
parent
e4a67fd906
commit
11cd7388f7
75 changed files with 163 additions and 163 deletions
|
@ -1206,7 +1206,7 @@ class ValuesListQuerySet(ValuesQuerySet):
|
|||
|
||||
for row in self.query.get_compiler(self.db).results_iter():
|
||||
data = dict(zip(names, row))
|
||||
yield tuple([data[f] for f in fields])
|
||||
yield tuple(data[f] for f in fields)
|
||||
|
||||
def _clone(self, *args, **kwargs):
|
||||
clone = super(ValuesListQuerySet, self)._clone(*args, **kwargs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue