Opened 2 years ago
Closed 2 years ago
#34330 closed Bug (duplicate)
QuerySet of a model having Meta.ordering, returns the sortable field in values_list() and values()
Description ¶
If you pass a Queryset to Subquery(), whose model has Meta.ordering, then the fields declared in ordering will be added to the result of values() or values_list() imperceptibly, then the error "Subquery returns more than 1 row" is raised
Change History (2)
comment:1 by , 2 years ago
Component: | Uncategorized → Database layer (models, ORM) |
---|
comment:2 by , 2 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
As far as I'm aware it's a duplicate of #14357, fixed in Django 3.1+.