[patch] [magic-removal] extra(select=) lookup option is out of order
|Reported by:||Antti Kaihola||Owned by:||Adrian Holovaty|
|Component:||Database layer (models, ORM)||Version:|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
In the documentation it's stated that the
extra(select=) lookup option expects a dictionary mapping attribute names to SQL clauses.
QuerySet._select is indeed initialize as an empty dict, but elsewhere in query.py it's assumed that
select= is a list of 2-tuples.