mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
65ad4ade74
Previously the order was always extra_fields + model_fields + annotations with
respective local ordering inferred from the insertion order of *selected.
This commits introduces a new `Query.selected` propery that keeps tracks of the
global select order as specified by on values assignment. This is crucial
feature to allow the combination of queries mixing annotations and table
references.
It also allows the removal of the re-ordering shenanigans perform by
ValuesListIterable in order to re-map the tuples returned from the database
backend to the order specified by values_list() as they'll be in the right
order at query compilation time.
Refs #28553 as the initially reported issue that was only partially fixed
for annotations by
|
||
---|---|---|
.. | ||
array_default_migrations | ||
array_index_migrations | ||
migrations | ||
__init__.py | ||
fields.py | ||
integration_settings.py | ||
models.py | ||
test_aggregates.py | ||
test_apps.py | ||
test_array.py | ||
test_bulk_update.py | ||
test_constraints.py | ||
test_functions.py | ||
test_hstore.py | ||
test_indexes.py | ||
test_integration.py | ||
test_introspection.py | ||
test_operations.py | ||
test_ranges.py | ||
test_search.py | ||
test_signals.py | ||
test_trigram.py | ||
test_unaccent.py |