1
0
mirror of https://github.com/django/django.git synced 2025-10-26 15:16:09 +00:00
Commit Graph

5494 Commits

Author SHA1 Message Date
aj2s
83f6fe810d [5.2.x] Fixed #36669 -- Doc'd that negative indexes are not supported in F() slices.
Backport of f715bc8990 from main.
2025-10-17 10:22:40 -04:00
Mariusz Felisiak
713e9d8f53 [5.2.x] Corrected admin check IDs in docs.
Backport of 1167cd1d63 from main
2025-10-09 20:03:00 +02:00
Natalia
80b9c8f529 [5.2.x] Fixed #36526 -- Doc'd QuerySet.bulk_update() memory usage when batching.
Thanks Simon Charette for the review.

Backport of 608d3ebc88 from main.
2025-10-08 18:33:02 -03:00
Mariusz Felisiak
084cbe1217 [5.2.x] Added missing backticks in docs/ref/models/fields.txt.
Backport of 4a8ca8bd69 from main
2025-10-08 11:01:02 +02:00
Jacob Walls
41bcb54bff [5.2.x] Refs #36143, #28596 -- Avoided mentioning exact query parameter limit in bulk_create() docs.
Backport of 0a09c60e97 from main.
2025-10-03 11:27:05 -04:00
Jacob Walls
b2773a39a3 [5.2.x] Refs #25508 -- Used QuerySet.__repr__ in docs/ref/contrib/postgres/search.txt.
Backport of efb96138b4 from main.
2025-09-23 10:09:18 -04:00
Jacob Walls
1dbf415a18 [5.2.x] Fixed typo in docs/ref/contrib/contenttypes.txt.
Backport of c48904a225 from main.
2025-09-13 11:29:40 -04:00
Mridul Dhall
b8df1eb7c2 [5.2.x] Fixed #36597 -- Corrected directives for functions from email module in docs.
Thanks Mike Edmunds for the report.

Backport of e183d6c26c from main.
2025-09-12 18:59:58 +02:00
Salman
adc80dd81e [5.2.x] Fixed #36486 -- Added MongoDB to list of third-party DB backends.
Backport of 46fdeb1373 from main
2025-09-09 08:24:11 +02:00
Jake Howard
fbced43cf8 [5.2.x] Refs #36588 -- Warned about using external templates in startapp/startproject commands.
Clarified that custom templates provided via `--template` for `starapp`
and `startproject` are used as-is, adding a warning that malicious or
poorly constructed templates may introduce security issues.

Backport of 4e7a991c12 from main.
2025-09-04 13:38:31 -03:00
Clifford Gama
ebec2c9323 [5.2.x] Removed unused import in docs/ref/models/expressions.txt example.
Backport of 21603c5b50 from main
2025-08-31 08:16:09 +02:00
Mustafa Pirbhai
16a12a9799 [5.2.x] Fixed #35831 -- Documented the model form meta API in model form reference docs.
Co-authored-by: Jonathan <3218047+jernwerber@users.noreply.github.com>
Co-authored-by: Mustafa <117516335+mspirbhai@users.noreply.github.com>

Backport of 183fcebf88 from main.
2025-08-29 09:00:37 +02:00
mengxun
38844c348b [5.2.x] Fixed spelling of "logged-in" when used as an adjective in docs.
Backport of f5c944b314 from main.
2025-08-19 12:43:52 -03:00
David Sanders
4926591343 [5.2.x] Aligned format of constraint examples in docs/ref/models/constraints.txt.
Backport of fda3c1712a from main.
2025-08-13 09:16:06 +02:00
jkhall81
bdc3f9e350 [5.2.x] Fixed #36530 -- Extended fields.E347 to check for ManyToManyField involving CompositePrimaryKey on either side.
Thanks to Jacob Walls for the report.

Backport of 2013092b69 from main.
2025-08-05 08:46:56 -03:00
Clifford Gama
1c2e11c7f4 [5.2.x] Fixed typo in docs/ref/utils.txt.
Backport of ac2d907f45 from main
2025-07-13 19:38:44 +02:00
Jake Howard
4de4edf2c0 [5.2.x] Fixed #36447 -- Selected preferred media type based on quality.
When matching which entry in the `Accept` header should be used for
a given media type, the specificity matters. However once those are
resolved, only the quality matters when selecting preference.

Regression in c075508b4d.

Thank you to Anders Kaseorg for the report.

Backport of 12c1557060 from main.
2025-06-16 09:27:46 +02:00
junghwan16
91569cffec [5.2.x] Fixed #36425 -- Standardized integer fields descriptions.
Backport of 091f66e51a from main.
2025-06-11 10:00:21 +02:00
Jake Howard
0c548e62d0 [5.2.x] Fixed #36411 -- Made HttpRequest.get_preferred_type() consider media type parameters.
HttpRequest.get_preferred_type() did not account for parameters in
Accept header media types (e.g., "text/vcard; version=3.0"). This caused
incorrect content negotiation when multiple types differed only by
parameters, reducing specificity as per RFC 7231 section 5.3.2
(https://datatracker.ietf.org/doc/html/rfc7231.html#section-5.3.2).

This fix updates get_preferred_type() to treat media types with
parameters as distinct, allowing more precise and standards-compliant
matching.

Thanks to magicfelix for the report, and to David Sanders and Sarah
Boyce for the reviews.

Backport of c075508b4d from main.
2025-06-03 16:11:38 -03:00
Adam Zapletal
bd873e84be [5.2.x] Fixed typo in docs/ref/forms/renderers.txt.
Backport of d2732c30af from main.
2025-05-23 11:21:14 +02:00
antoliny0919
954e24758c [5.2.x] Added missing import in docs/ref/contrib/admin/index.txt.
Backport of a79c411147 from main.
2025-05-15 15:49:19 +02:00
Jacob Walls
9cbd7dd349 [5.2.x] Fixed incorrect spacing in docs/ref/contrib/postgres/fields.txt.
Backport of e52100a250 from main.
2025-05-15 09:22:52 -03:00
Clifford Gama
3c887e5e50 [5.2.x] Fixed #17461 -- Doc'd the presumed order of foreign keys on the intermediary model of a self-referential m2m.
Thanks Giannis Terzopoulos and Sarah Boyce for the reviews.

Backport of 9d93e35c20 from main.
2025-05-02 09:02:16 +02:00
koresi
231eb7acc3 [5.2.x] Fixed #35931 -- Documented fields and methods of the FlatPage model.
Co-authored-by: Clifford Gama <53076065+cliff688@users.noreply.github.com>

Backport of 0ee06c04e0 from main.
2025-04-27 16:12:47 +02:00
Clifford Gama
0ba34e7ca0 [5.2.x] Clarified url and name arguments in flatpages URLconf ref docs.
Backport of a2f7b3a6a0 from main.
2025-04-08 22:03:15 -03:00
Natalia
4d89d8c180 [5.2.x] Added missing closing parenthesis in docs/ref/contrib/flatpages.txt.
Backport of f9f0a18327 from main.
2025-04-08 22:02:58 -03:00
Babak Mahmoudy
c68f3516be [5.2.x] Fixed #36213 -- Doc'd MySQL's handling of self-select updates in QuerySet.update().
Co-authored-by: Andro Ranogajec <ranogaet@gmail.com>

Backport of be1b776ad8 from main.
2025-04-02 08:46:48 +02:00
Clifford Gama
0dba888d0c [5.2.x] Clarified pre_delete and post_delete's origin attributes.
Backport of 9d5d0e8135 from main.
2025-03-31 16:11:44 +02:00
dr-rompecabezas
46fdef9d22 [5.2.x] Updated ogrinfo output in GIS tutorial.
Backport of fb65c52040 from main
2025-03-23 21:36:33 +01:00
Clifford Gama
61535d2228 [5.2.x] Refs #36095 -- Doc'd that ManyToManyField.through supports lazy relationships.
Backport of eb4ea9c3ef from main.
2025-03-21 14:10:09 +01:00
Johanan Oppong Amoateng
321a5651a3 [5.2.x] Fixed #36266 -- Renamed HIDE_PRODUCTION_WARNING environment variable to DJANGO_RUNSERVER_HIDE_WARNING.
Backport of 5adadf6e8c from main.
2025-03-21 10:23:13 +01:00
Sarah Boyce
143068e0de [5.2.x] Fixed #36097 -- Replaced GIS functions table with section headers for better readability and navigation.
Backport of ed1e7c02c9 from main.
2025-03-19 09:32:39 -03:00
Carlton Gibson
c779808c8e [5.2.x] Fixed #33497 -- Doc'd that persistent DB connections should be disabled in ASGI and async modes.
Backport of 8713e4ae96 from main.
2025-03-18 21:28:07 -03:00
Clifford Gama
428cb3afd6 [5.2.x] Fixed #36078 -- Doc'd that Postgres normalizes a range field with no points to empty.
Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>

Backport of 611e7bc3a0 from main.
2025-03-18 16:51:11 +01:00
Clifford Gama
9b60ec56dd [5.2.x] Fixed pronoun disagreement in docs/ref/models/querysets.txt.
Backport of ef6a83789b from main.
2025-03-14 10:49:28 +01:00
Clifford Gama
fa2adc383f [5.2.x] Corrected aggregation example in docs/ref/models/querysets.txt.
Backport of 3235e76eb5 from main.
2025-03-14 10:48:54 +01:00
Clifford Gama
91971013a1 [5.2.x] Fixed incorrect formatting for inline pluralized code references in docs.
Backport of efe3ca09e0 from main.
2025-03-13 15:23:55 -03:00
Adam Johnson
5fdc951f43 [5.2.x] Refs #25582 -- Doc'd query and fragment arguments for reverse_lazy().
Backport of c70dbcf835 from main.
2025-03-12 16:43:13 +01:00
samruddhiDharankar
930d9c2fd9 [5.2.x] Fixed #36066 -- Documented that Q objects can be used directly in annotations.
Backport of 9120a19c4e from main.
2025-03-10 12:55:50 +01:00
hesham942
d42b187022 [5.2.x] Fixed typo in docs/ref/checks.txt.
Backport of 8f942f1c1d from main.
2025-03-05 16:22:01 +01:00
hesham942
b280175b5a [5.2.x] Fixed #36227 -- Fixed outdated PostgreSQL documentation links.
Backport of 3ecaa85a24 from main.
2025-03-05 15:17:19 +01:00
Clifford Gama
4406ce15ff [5.2.x] Fixed #36128 -- Clarified auto-generated unique constraint on m2m through models.
Backport of ae2736ca3b from main.
2025-03-04 13:07:08 +01:00
Sarah Boyce
d637e251b4 [5.2.x] Added security guideline on reasonable size limitations when rendering content via the DTL.
This also removes the need to add warnings for every Django template filter.

Backport of 582ba18d56 from main.
2025-02-24 08:54:44 +01:00
Adam Zapletal
baea0f644e [5.2.x] Clarified admonition in GeneratedField docs.
Backport of 43766c70bd from main.
2025-02-20 14:42:08 +01:00
Sarah Boyce
bb4f65ec87 [5.2.x] Removed advice to propose a new contrib app.
Backport of 9d22a7d8f0 from main.
2025-02-18 16:11:08 +01:00
Luke Cousins
9cd975c7fa [5.2.x] Corrected wording in docs/ref/models/constraints.txt.
Backport of 579a1c9996 from main.
2025-02-14 15:20:26 +01:00
9ad5d0ac3b [5.2.x] Fixed typo in docs/ref/databases.txt.
Backport of d87bb0eb3e from main.
2025-02-14 15:16:48 +01:00
Sarah Boyce
92d5b2f389 [5.2.x] Fixed #36182 -- Returned "?" if all parameters are removed in querystring template tag.
Thank you to David Feeley for the report and Natalia Bidart for the review.

Backport of 05002c153c from main.
2025-02-13 15:50:53 +01:00
Mariusz Felisiak
d3d9f3a5a4 [5.2.x] Reverted "Refs #35803 -- Added support for __coveredby GIS lookup on MariaDB 11.7+."
This partly reverts commit 0b7edb9fcd.

MariaDB reverted GIS functions.

Backport of 54a902c6e8 from main.
2025-02-13 10:40:53 +01:00
Mariusz Felisiak
fc19618171 [5.2.x] Reverted "Fixed #35803 -- Added support for Collect, GeoHash, and IsValid on MariaDB 11.7+."
This reverts commit c77573716a.

MariaDB reverted GIS functions.

Backport of eb70aafdba from main.
2025-02-13 10:40:07 +01:00