Mariusz Felisiak
9c51b4dcfa
[4.2.x] Fixed CVE-2023-41164 -- Fixed potential DoS in django.utils.encoding.uri_to_iri().
...
Thanks MProgrammer (https://hackerone.com/mprogrammer ) for the report.
Co-authored-by: nessita <124304+nessita@users.noreply.github.com>
2023-09-04 12:05:35 +02:00
willzhao
acfb427522
[4.2.x] Fixed #34803 -- Fixed queryset crash when filtering againts deeply nested OuterRef annotations.
...
Thanks Pierre-Nicolas Rigal for the report.
Regression in c67ea79aa981ae82595d89f8018a41fcd842e7c9.
Backport of 9cc0d7f7f85cecc3ad15bbc471fe6a08e4f515b6 from main
2023-09-01 11:25:00 +02:00
Mariusz Felisiak
55a0b9c32e
[4.2.x] Added stub release notes and release date for 4.2.5, 4.1.11, and 3.2.21.
...
Backport of 24f1a38b37c0af3a5ce0dd7b5392fe4e75d7e1dc from main
2023-08-28 06:14:50 +02:00
Mariusz Felisiak
8e8c318449
[4.2.x] Avoided counting exceptions in AsyncClient docs.
...
Follow up to ad6bb20557f5c87de26aeb3afb061af942a8cc17.
Backport of 9942a3e49b801b59e10329d86cd8bf12f1716529 from main
2023-08-24 05:21:00 +02:00
Luca Allulli
dcb9d7a0e4
[4.2.x] Improved formset docs by using a set instead of a list in the custom validation example.
...
Backport of c59be9f1da7e1fc58df49d5eda4e80cd50ce5710 from main
2023-08-23 22:26:05 -03:00
Keryn Knight
f55b420277
[4.2.x] Fixed #34781 -- Updated logging ref docs for django.server's request extra context value.
...
Backport of 428023e2677aeb80d86b19f90b0c6b82c7cb666d from main
2023-08-22 22:44:46 -03:00
Juan Alvarez
46b2b08e45
[4.2.x] Fixed #34779 -- Avoided unnecessary selection of non-nullable m2m fields without natural keys during serialization.
...
By using `select_related(None)` instead of `select_related()`, the
unnecessary joins are completely avoided. Note that the current tests
already covers the change, when the field is not `null=True`.
Regression in f9936deed1ff13b20e18bd9ca2b0750b52706b6c.
Backport of 517d3bb4dd17e9c51690c98d747b86a0ed8b2fbf from main
2023-08-19 11:23:59 +02:00
Mariusz Felisiak
d34db6602e
[4.2.x] Fixed #34773 -- Fixed syncing DEFAULT_FILE_STORAGE/STATICFILES_STORAGE settings with STORAGES.
...
Thanks Petr Dlouhý for the report.
Bug in 32940d390a00a30a6409282d314d617667892841.
Backport of 6b965c600054f970bdf94017ecf2e0e6e0a4326b from main
2023-08-18 18:12:30 +02:00
anthony kugel
a22aeef555
[4.2.x] Fixed #15799 -- Doc'd that Storage._open() should raise FileNotFoundError when file doesn't exist.
...
Backport of 8edaf07a28a3e3848ab1edbdcd2fdc25e6bd6015 from main
2023-08-04 18:08:46 +02:00
Simon Charette
3a1863319c
[4.2.x] Fixed #34754 -- Fixed JSONField check constraints validation on NULL values.
...
The __isnull lookup of JSONField must special case
Value(None, JSONField()) left-hand-side in order to be coherent with
its convoluted null handling.
Since psycopg>=3 offers no way to pass a NULL::jsonb the issue is
resolved by optimizing IsNull(Value(None), True | False) to
True | False.
Regression in 5c23d9f0c32f166c81ecb6f3f01d5077a6084318.
Thanks Alexandre Collet for the report.
Backport of 3434dbd39d373df7193ad006b970c09c1a909ea3 from main
2023-08-04 10:58:53 +02:00
David Smith
951dcbb2e6
[4.2.x] Fixed #34756 -- Fixed docs HTML build on Sphinx 7.1+.
...
Backport of b3e0170ab546a96930ce3114b0a1a560953c0ff4 from main
2023-08-03 09:32:03 +02:00
Natalia
a750fd0d7f
[4.2.x] Added stub release notes for 4.2.5.
...
Backport of 24068058a63c506c300629fcc491601abc968926 from main
2023-08-01 14:56:34 -03:00
Natalia
e53d6239df
[4.2.x] Added release date for 4.2.4.
...
Backport of c8d7a5491e002c7e5ae9b8453b3263ecf43dde33 from main
2023-08-01 13:47:01 -03:00
Mariusz Felisiak
8808d9da6b
[4.2.x] Fixed #34750 -- Fixed QuerySet.count() when grouping by unused multi-valued annotations.
...
Thanks Toan Vuong for the report.
Thanks Simon Charette for the review.
Regression in 59bea9efd2768102fc9d3aedda469502c218e9b7.
Backport of c9b9a52edc66be117c6e5b5214fa788a4d5db7a8 from main
2023-08-01 16:17:06 +02:00
Almaz Kunpeissov
2ef2b2ffc0
[4.2.x] Corrected pycon formatting in some docs.
...
Backport of 5a3725594faacc412e2d2b4ed160370228f1a118 from main
2023-08-01 08:47:40 +02:00
Simon Charette
739da73164
[4.2.x] Fixed #34748 -- Fixed queryset crash when grouping by a reference in a subquery.
...
Regression in dd68af62b2b27ece50d434f6a351877212e15c3f.
Thanks Toan Vuong for the report.
Backport of 4087367ba869be9cf305dac39a8887d4aa4041d2 from main
2023-07-30 07:51:52 +02:00
John Parton
a52a2b6678
[4.2.x] Fixed #34749 -- Corrected QuerySet.acreate() signature in docs.
...
Backport of af0c5caff72e5ffda4dff708a57e37ae4778197d from main
2023-07-28 18:06:04 +02:00
Bruno Alla
12ebd9a1ac
[4.2.x] Refs #34712 -- Doc'd that defining STORAGES overrides the default configuration.
...
Backport of 86561844ce66cda3e6a8c22d4ace4c2d1bc1f2e7 from main
2023-07-24 21:07:41 +02:00
Mariusz Felisiak
1f9d00ef9f
[4.2.x] Added missing backticks in docs.
...
Backport of 02376f1f53db24039c200ef4818d96accf16a88b from main
2023-07-21 12:55:10 +02:00
nessita
c99d935600
[4.2.x] Fixed typo in docs/ref/models/querysets.txt.
...
Removed assignment in example for Blog annotation to match shown result.
Backport of addbc90049083f1d5f7ac138ed00111b71a75233 from main
2023-07-20 19:49:01 +02:00
Vyacheslav Dmitriev
da92a971a0
[4.2.x] Refs #30052 -- Clarified that defer() and only() do not work with aggregated fields.
...
Backport of b126f694160c4641e64e57dba6b022f06fbfa745 from main
2023-07-20 14:07:16 -03:00
Simon Charette
7a67b065d7
[4.2.x] Fixed #34717 -- Fixed QuerySet.aggregate() crash when referencing window functions.
...
Regression in 59bea9efd2768102fc9d3aedda469502c218e9b7.
Refs #28477 .
Thanks younes-chaoui for the report.
Backport of 68912e4f6f84f21322f92a2c7b6c77f68f91b9c9 from main
2023-07-19 09:06:16 +02:00
David Sanders
c646412a75
Added reference to TypedChoiceField in ChoiceField docs.
2023-07-18 12:06:59 -03:00
Marcelo Galigniana
f474ba4cb5
[4.2.x] Fixed #34309 -- Doc'd how to fully delete an app.
...
Co-authored-by: nessita <124304+nessita@users.noreply.github.com>
Co-authored-by: shangxiao <shang.xiao.sanders@gmail.com>
Co-authored-by: sarahboyce <42296566+sarahboyce@users.noreply.github.com>
Co-authored-by: felixxm <felisiak.mariusz@gmail.com>
Backport of 2ddfa3e2b63d7a77270711dbe63aafb86abf4ddd from main
2023-07-11 11:45:37 +02:00
Jon Ribbens
e54f711d42
[4.2.x] Fixed #33405 , Refs #7177 -- Clarified docs for filter escapejs regarding safe and unsafe usages.
...
Backport of adfb3dfa89b62ee0c838a64d3d480c03dd3ec869 from main
2023-07-03 13:55:31 +02:00
Mariusz Felisiak
047844270b
[4.2.x] Added stub release notes for 4.2.4.
...
Backport of 393b8324b390aef428016f93b3cb30228d38dc87 from main
2023-07-03 10:38:20 +02:00
Mariusz Felisiak
9549819d37
[4.2.x] Added CVE-2023-36053 to security archive.
...
Backport of 1d6fbf16f24200a556beb6dd197439944deb6837 from main
2023-07-03 10:26:42 +02:00
Mariusz Felisiak
b7c5feb35a
[4.2.x] Fixed CVE-2023-36053 -- Prevented potential ReDoS in EmailValidator and URLValidator.
...
Thanks Seokchan Yoon for reports.
2023-07-03 08:19:23 +02:00
Cerebro Cerberus
1ea11365f6
[4.2.x] Fixed typo in docs/intro/tutorial08.txt.
...
Backport of 6fbe5287ac46f38faa9634e02da7e7b01e37c34d from main
2023-06-28 07:10:04 +02:00
nessita
7b45fe01ab
[4.2.x] Added dedicated section for output_field in query expressions docs.
...
Backport of 679928834295ebd874ede667dbaae8a7945d3580 from main
2023-06-27 15:14:13 -03:00
Mariusz Felisiak
67fe092a85
[4.2.x] Fixed typo in docs/ref/models/querysets.txt.
...
Backport of c4a09499aa760c92969083b4639703b5b0a562fb from main
2023-06-27 12:54:46 +02:00
Mariusz Felisiak
9ab56e64de
[4.2.x] Added stub release notes and release date for 4.2.3, 4.1.10, and 3.2.20.
...
Backport of 2360ba22742c3ee8729697bfe2d508110465af56 from main
2023-06-26 14:36:06 +02:00
Mariusz Felisiak
a18e0f44d5
[4.2.x] Corrected admin.E013 check message in docs.
...
Backport of ddb6506618ea52c6b20e97eefad03ed847a1e3de from main
2023-06-20 12:59:48 +02:00
Ashwin Dharne
fabd0510a0
[4.2.x] Fixed typo in docs/topics/db/fixtures.txt.
...
Backport of 5762b839ff60b57f80c37992fe6beb9d7f740b0e from main
2023-06-16 19:34:32 +02:00
Mariusz Felisiak
4b433ef236
[4.2.x] Refs #30220 -- Bumped required version of Selenium to 3.8.0.
...
Follow up to 8d010f39869f107820421631111417298d1c5bb9.
Backport of 06881341d48dd17a4fdf25afc96991de4fb3b1ac from main
2023-06-13 10:13:15 +02:00
Neeraj Kumar
9e9a286bed
[4.2.x] Fixed #34638 -- Fixed admin change list selected row highlight on editable boolean fields.
...
Regression in 0aa2f16e63887d6053f6fd0da19254fc74c750ae.
Thanks Andrei Shabanski for the report.
Backport of 1d9d32389c652edc56ada65116d39789896f4820 from main.
2023-06-11 19:28:50 +02:00
Mariusz Felisiak
31d1fc36b3
[4.2.x] Fixed #34645 -- Restored alignment for admin date/time timezone warnings.
...
Regression in 96a598356a9ea8c2c05b22cadc12e256a3b295fd.
Backport of caf80cb41f13e84803a94928282cae75333bbdfc from main
2023-06-09 21:37:50 +02:00
Akash Kumar Sen
eb84c068ed
[4.2.x] Fixed #30355 -- Doc'd interaction between custom managers and prefetch_related().
...
Backport of 5f2308710b5a3d9f5f135b7ade08214f5c154ec4 from main
2023-06-07 19:32:18 +02:00
nessita
b2355a8df3
[4.2.x] Added stub release notes for 4.2.3.
...
Backport of e26d1a91d7de6e9d44655dc4fc6a99654a0dd925 from main
2023-06-05 14:59:06 -03:00
Natalia
e84d38ab36
[4.2.x] Added release date for 4.2.2.
...
Backport of 0faad0193815c5f07a08dba4eaa04193ca9eb268 from main
2023-06-05 08:26:28 -03:00
Mariusz Felisiak
87a4cd559b
[4.2.x] Fixed #34620 -- Fixed serialization crash on m2m fields without natural keys when base querysets use select_related().
...
Regression in 19e0587ee596debf77540d6a08ccb6507e60b6a7.
Thanks Martin Svoboda for the report.
Backport of f9936deed1ff13b20e18bd9ca2b0750b52706b6c from main
2023-06-04 20:49:40 +02:00
Mariusz Felisiak
66d9fa4371
[4.2.x] Refs #23528 -- Made cosmetic edits to swappable_dependency() docs.
...
Backport of 1136aa5005f0ae70fea12796b7e37d6f027b9263 from main
2023-06-03 12:02:08 +02:00
DevilsAutumn
92ad551afd
[4.2.x] Fixed #23528 -- Doc'd django.db.migrations.swappable_dependency().
...
Backport of 7d96ce68ae2c1bab1f2ab64ddc2b2c6004278af0 from main
2023-06-02 21:47:33 +02:00
Simon Charette
738386470d
[4.2.x] Fixed #34612 -- Fixed QuerySet.only() crash on reverse relationships.
...
Regression in b3db6c8dcb5145f7d45eff517bcd96460475c879.
Thanks Ian Cubitt for the report.
This also corrected test_inheritance_deferred2() test which was
previously properly defined and marked as an expected failure but was
then wrongly adjusted to mask the lack of support for per-alias
deferral that was fixed by #21204 .
Backport of 2cf76f2d5d1aa16acfadaf53db3d30128a34b088 from main
2023-06-01 20:27:06 +01:00
AP Jama
dae052d823
[4.2.x] Fixed #34595 -- Doc'd that format_string arg of format_html() is not escaped.
...
Backport of 4037223d0f12c44ecd6f369ccbabcbd279a1bdbc from main
2023-06-01 13:10:45 +01:00
Akash Kumar Sen
dca5f5d58a
[4.2.x] Fixed #34600 -- Removed references to bleach in docs.
...
Backport of b0a6cc7f5738d6b959faf10354b772338f611fd9 from main
2023-05-31 10:23:37 +01:00
Natalia
25bd9faf32
[4.2.x] Fixed #34574 -- Noted unexpected outcomes in autoescape/escape docs.
...
Backport of 1a59a324cec5caf12ea0c4947564828aa7bda02a from main.
2023-05-26 07:50:19 +02:00
David Sanders
91f8df5c2e
[4.2.x] Fixed #34590 -- Reverted "Refs #33308 -- Improved adapting DecimalField values to decimal."
...
This reverts 7990d254b0af158baf827fafbd90fe8e890f23bd.
Thanks Marc Odermatt for the report.
Backport of 0c1518ee429b01c145cf5b34eab01b0b92f8c246 from main
2023-05-24 11:00:21 +02:00
Stefan Brand
a44e974412
[4.2.x] Corrected documentation of Log database function.
...
Backport of eb9df03a43f34c44131ec3a295643327b8a68bb4 from main
2023-05-24 05:30:43 +02:00
Simon Charette
c78a4421de
[4.2.x] Fixed #34551 -- Fixed QuerySet.aggregate() crash when referencing subqueries.
...
Regression in 59bea9efd2768102fc9d3aedda469502c218e9b7.
Refs #28477 .
Thanks Denis Roldán and Mariusz for the test.
Backport of e5c844d6f2a4ac6ae674d741b5f1fa2a688cedf4 from main
2023-05-23 07:39:24 +02:00