mirror of
https://github.com/django/django.git
synced 2025-10-29 16:46:11 +00:00
Refs #33476 -- Refactored code to strictly match 88 characters line length.
This commit is contained in:
@@ -1063,7 +1063,8 @@ class QuerySet:
|
||||
raise TypeError("'flat' and 'named' can't be used together.")
|
||||
if flat and len(fields) > 1:
|
||||
raise TypeError(
|
||||
"'flat' is not valid when values_list is called with more than one field."
|
||||
"'flat' is not valid when values_list is called with more than one "
|
||||
"field."
|
||||
)
|
||||
|
||||
field_names = {f for f in fields if not hasattr(f, "resolve_expression")}
|
||||
|
||||
Reference in New Issue
Block a user