.values_list
returns incorrect type for field with same name when selected from related model
#2336
Labels
bug
Something isn't working
This wasn't a problem in
5.0.2
and thus I've bisected the issue toIf I run
values_list
and select a field on a related model, which happens to have the same name on the filtering model, types are not selected from the related model's field.Repro case:
What's wrong
Results in an error:
Above are the types from
A.name
but the query selects fromB.name
How is that should be
main:2: note: Revealed type is "Tuple[builtins.str]"
The text was updated successfully, but these errors were encountered: