1
0
mirror of https://github.com/django/django.git synced 2025-01-03 06:55:47 +00:00
django/docs/ref
Simon Charette 65ad4ade74 Refs #28900 -- Made SELECT respect the order specified by values(*selected).
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 d6b6e5d0fd.

Thanks Mariusz Felisiak and Sarah Boyce for review.
2024-07-03 16:36:25 +02:00
..
class-based-views Fixed #34140 -- Reformatted code blocks in docs with blacken-docs. 2023-03-01 13:03:56 +01:00
contrib Optimized admin docs images. 2024-06-25 17:45:20 -03:00
files Removed versionadded/changed annotations for 5.0. 2024-05-22 15:44:07 -03:00
forms Made cosmetic edits to code snippets reformatted with blacken-docs. 2024-05-30 09:42:05 -03:00
models Refs #28900 -- Made SELECT respect the order specified by values(*selected). 2024-07-03 16:36:25 +02:00
templates Fixed #35441 -- Documented Context and RequestContext keyword arguments. 2024-06-20 09:34:55 +02:00
applications.txt Fixed #23790 -- Warned about renaming AppConfig.label in docs/ref/applications.txt. 2024-07-01 21:52:04 -03:00
checks.txt Fixed #31405 -- Added LoginRequiredMiddleware. 2024-05-22 08:51:17 +02:00
clickjacking.txt Removed versionadded/changed annotations for 5.0. 2024-05-22 15:44:07 -03:00
csrf.txt Refs #35401 -- Linked the CsrfViewMiddleware docs to the csrf_protect() decorator. 2024-06-12 13:11:29 +02:00
databases.txt Fixed #35479 -- Dropped support for PostgreSQL 13 and PostGIS 3.0. 2024-05-27 09:49:25 +02:00
django-admin.txt Removed versionadded/changed annotations for 5.0. 2024-05-22 15:44:07 -03:00
exceptions.txt Removed versionadded/changed annotations for 4.2. 2023-09-18 22:12:40 +02:00
index.txt
logging.txt Fixed #34806 -- Made cached_db session backend resilient to cache write errors. 2024-02-21 21:51:58 -03:00
middleware.txt Fixed #35401 -- Documented the conditional_page() decorator. 2024-06-12 13:11:29 +02:00
migration-operations.txt Doc'd that RemoveField also drops related database objects in PostgreSQL. 2024-04-16 13:11:06 -03:00
paginator.txt Removed versionadded/changed annotations for 5.0. 2024-05-22 15:44:07 -03:00
request-response.txt Removed versionadded/changed annotations for 5.0. 2024-05-22 15:44:07 -03:00
schema-editor.txt Refs #27236 -- Removed Meta.index_together per deprecation timeline. 2023-09-18 22:12:40 +02:00
settings.txt Fixed #35306 -- Documented fallback localization formats in templates when localization is disabled. 2024-06-24 18:06:44 +02:00
signals.txt Improved style of n-tuple wording in docs and comments. 2023-06-23 09:29:35 +02:00
template-response.txt Fixed #34140 -- Reformatted code blocks in docs with blacken-docs. 2023-03-01 13:03:56 +01:00
unicode.txt Fixed broken links and redirects in docs. 2024-03-06 08:50:21 +01:00
urlresolvers.txt Fixed 35467 -- Replaced urlparse with urlsplit where appropriate. 2024-05-29 10:48:27 -03:00
urls.txt Fixed #35090 -- Deprecated registering URL converters with the same name. 2024-02-23 15:54:49 +01:00
utils.txt Fixed #12978 -- Added support for RSS feed stylesheets. 2024-06-18 17:25:43 +02:00
validators.txt Removed versionadded/changed annotations for 5.0. 2024-05-22 15:44:07 -03:00
views.txt Fixed #34140 -- Reformatted code blocks in docs with blacken-docs. 2023-03-01 13:03:56 +01:00