Mariusz Felisiak
f12dc36754
[4.2.x] Fixed #34443 -- Fixed filtering by transforms on reverse relations.
...
Regression in ce6230aa976e8d963226a3956b45a8919215dbd8.
Backport of 996c802229b93fe83c39842e56c6b8668464deaf from main
2023-03-28 21:03:48 +02:00
Mariusz Felisiak
be6a309b1d
[4.2.x] Refs #29799 -- Added field instance lookups to suggestions in FieldErrors.
...
Bug in cd1afd553f9c175ebccfc0f50e72b43b9604bd97.
Backport of 3afdc9e9b47d5bdd1bd653633b4cb2357478ade5 from main
2023-03-28 19:19:30 +02:00
Gary Jarrel
99ba5b43f0
[4.2.x] Fixed #34438 -- Reallowed extending UserCreationForm.
...
Regression in 298d02a77a69321af8c0023df3250663e9d1362d.
Backport of fcc7dc5781667932bf0bf8bec76df458836e5e95 from main
2023-03-28 12:48:25 +02:00
Tom Carrick
788f7b8100
[4.2.x] Fixed #34383 -- Fixed layout of admin fieldsets with multiple fields on the same line.
...
Thanks Antonio Candido Nazareth junior for the report.
Regression in 96a598356a9ea8c2c05b22cadc12e256a3b295fd.
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
Backport of d687febce5868545f99974d2499a91f81a32fef5 from main
2023-03-28 05:35:28 +02:00
Carlton Gibson
ae824eceb1
[4.2.x] Fixed #34428 -- Made ASGIStaticFilesHandler adapt response to async iterator.
...
Bug in 0bd2c0c9015b53c41394a1c0989afbfd94dc2830.
Backport of 02c356f2f3945b8075735d485c3cf48cad991011 from main
2023-03-21 20:52:59 +01:00
Mariusz Felisiak
f2923306f1
[4.2.x] Fixed #34322 -- Made ES module support to ManifestStaticFilesStorage optional.
...
Co-authored-by: Author: Claude Paroz <claude@2xlibre.net>
Backport of e10c1688f96e3b2d202fe401472b7b25f6105969 from main
2023-03-18 14:06:09 +01:00
David Wobrock
6937c92169
[4.2.x] Fixed #34384 -- Fixed session validation when rotation secret keys.
...
Bug in 0dcd549bbe36c060f536ec270d34d9e7d4b8e6c7.
Thanks Eric Zarowny for the report.
Backport of 2396933ca99c6bfb53bda9e53968760316646e01 from main
2023-03-08 11:33:03 +01:00
Tim Graham
fae76b81ce
[4.2.x] Refs #34320 -- Added skipIf for a test requiring check constraints.
...
Backport of 40e88ae8c899bcae3a9520f7a6519dd178185f85 from main
2023-02-28 05:13:22 +01:00
Simon Charette
fc15d11f2e
[4.2.x] Fixed #34368 -- Made subquery raise NotSupportedError when referencing outer window expression.
...
Regression in f387d024fc75569d2a4a338bfda76cc2f328f627.
Co-authored-by: Jannis Vajen <jvajen@gmail.com>
Backport of c67ea79aa981ae82595d89f8018a41fcd842e7c9 from main
2023-02-27 09:46:30 +01:00
Simon Charette
872dade29c
[4.2.x] Fixed #34372 -- Fixed queryset crash on order by aggregation using OrderBy.
...
Regression in 278881e37619278789942513916acafaa88d26f3 caused by a lack
of expression copying when an OrderBy expression is explicitly provided.
Thanks Jannis Vajen for the report and regression test.
Backport of b15f162f252610e3b510ade465549769ab4356cf from main
2023-02-27 07:10:45 +01:00
Panagiotis H.M. Issaris
ce69dba000
[4.2.x] Fixed #34363 -- Fixed floatformat crash on zero with trailing zeros.
...
Regression in 08c5a787262c1ae57f6517d4574b54a5fcaad124.
Follow up to 4b066bde692078b194709d517b27e55defae787c.
Backport of dcd974698301a38081c141ccba6dcafa5ed2c80e from main
2023-02-22 20:49:04 +01:00
Laurens Verhoeven
bb94e1b7db
[4.2.x] Fixed #34349 -- Fixed FormSet.empty_form crash when deleting extra forms is disabled.
...
Backport of 6cbc403b8ee7014bd6dae4892d404eedb1d4a50d from main
2023-02-20 09:33:19 +01:00
Simon Charette
aab25a69dd
[4.2.x] Fixed #34346 -- Ordered selected expressions by position.
...
Used the same approach as for #34176 by using selected expressions
position to prevent ambiguous aliases in collisions.
Thanks henribru for the report.
Regression in 04518e310d4552ff7595a34f5a7f93487d78a406.
Backport of 278881e37619278789942513916acafaa88d26f3 from main
2023-02-20 06:22:18 +01:00
Simon Charette
312d0f88b4
[4.2.x] Refs #33308 -- Added tests for queryset ordered by annotation with nulls_first/nulls_last.
...
Backport of a6511bc23329f1d3939571ad01d3176f8f6cb786 from main
2023-02-18 16:29:04 +01:00
Stefan Brand
efcc0f25a7
[4.2.x] Fixed #34302 -- Fixed SpatialReference.srid for objects without top-level authority.
...
Backport of eacf6b73d8eace004f840bd9b80c8c671caab9da from main
2023-02-17 19:57:41 +01:00
Stefan Brand
341f33ed15
[4.2.x] Refs #34302 -- Fixed SpatialReference.auth_name()/auth_code() when target is None.
...
force_bytes() turns None into the byte string b"None". Since
ctypes.c_char_p() also accepts None, we can bypass force_bytes() if
target is None.
Backport of d77762de038d1ab46cdcda2b7202d36c80956e25 from main
2023-02-17 19:57:34 +01:00
Alexandre Spaeth
610cd06c3f
[4.2.x] Fixed #34342 , Refs #33735 -- Fixed test client handling of async streaming responses.
...
Bug in 0bd2c0c9015b53c41394a1c0989afbfd94dc2830.
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
Backport of 52b054824e899db40ba48f908a9a00dadc56cb89 from main
2023-02-17 11:48:59 +01:00
Alexandre Spaeth
1ecbc04624
[4.2.x] Refs #34342 -- Added tests for handling sync streaming responses by test client.
...
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
Backport of bfb8fda3e69cc6f5c6695ba70117faff51cc25a9 from main
2023-02-17 11:48:53 +01:00
nabil-rady
3b09f35558
[4.2.x] Fixed #34320 -- Make sure constraints names are obtained from truncated columns names.
...
Backport of 6bdc3c58b65eb32fd63cd41849f00a17a36b4473 from main
2023-02-15 16:52:31 +01:00
DevilsAutumn
5cde08f702
[4.2.x] Fixed #34250 -- Fixed renaming model with m2m relation to a model with the same name.
...
Backport of ff3a2834224f527ca574b5cd0d578c8c26d51a6c from main
2023-02-14 14:33:45 +01:00
Markus Holtermann
7ac5ff37b8
[4.2.x] Fixed CVE-2023-24580 -- Prevented DoS with too many uploaded files.
...
Thanks to Jakob Ackermann for the report.
2023-02-14 08:21:18 +01:00
sarahboyce
5510a12c90
[4.2.x] Fixed #34316 -- Fixed layout of admin password change forms and help texts.
...
Regression in 96a598356a9ea8c2c05b22cadc12e256a3b295fd.
Backport of e67804668115fd388e7554c6a809bd409f70adfe from main
2023-02-13 11:52:09 +01:00
Dhanush
a0623b117c
[4.2.x] Fixed #32813 -- Made runserver display port after binding.
...
Thanks Florian Apolloner for the review.
Backport of a18d20ca97e6799152c1e0b6f007fde943053dcb from main
2023-02-10 09:55:35 +01:00
Mariusz Felisiak
836ae73a89
[4.2.x] Fixed #34319 -- Fixed Model.validate_constraints() crash on ValidationError with no code.
...
Thanks Mateusz Kurowski for the report.
Regression in 667105877e6723c6985399803a364848891513cc.
Backport of 2fd755b361d3da2cd0440fc9839feb2bb69b027b from main
2023-02-08 16:39:53 +01:00
Bakdolot
1f193f7f56
[4.2.x] Fixed #34315 -- Preserved admin changelist filters on "Close" button.
...
Backport of 325c44ac6c070465ef2b3b7b8ed06cbcb88a3f10 from main
2023-02-08 10:21:40 +01:00
Nils VAN ZUIJLEN
e8a39da396
[4.2.x] Fixed #34285 -- Fixed index/slice lookups on filtered aggregates with ArrayField.
...
Thanks Simon Charette for the review.
Backport of ae1fe72e9b1f5fe3b05e5b670bd0c205cd305e71 from main
2023-02-07 14:06:08 +01:00
Jacob Walls
714d59d57f
[4.2.x] Fixed #33638 -- Fixed GIS lookups crash with geography fields on PostGIS.
...
Backport of 4403432b759124aa613249373e0d2ede64ae8765 from main
2023-02-07 12:24:24 +01:00
Frederic Mheir
d70b2a88e8
[4.2.x] Fixed #34301 -- Made admin's submit_row check add permission for "Save as new" button.
...
Backport of 2878938626aed211d03db33a9a135c9b1d933069 from main
2023-02-07 07:31:51 +01:00
Mariusz Felisiak
9a1848f48c
[4.2.x] Increased the default PBKDF2 iterations for Django 4.2.
...
See https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html#pbkdf2 .
Thanks Markus Holtermann for the report.
2023-02-04 13:36:06 +01:00
Adam Johnson
beaa5f31e1
[4.2.x] Fixed #34259 -- Passed called_from_command_line to command subparsers.
...
Backport of 017fa23d3b0aee9142f531c2a0002fc86c82a54c from main
2023-02-03 07:54:15 +01:00
skidipap
db0e10c037
[4.2.x] Fixed #34286 -- Fixed admindocs markups for case-sensitive template/view names.
...
Backport of 1250483ebf73f7a82ff820b94092c63ce4238264 from main
2023-02-02 14:48:10 +01:00
David Smith
80aae83439
[4.2.x] Refs #33476 -- Applied Black's 2023 stable style.
...
Black 23.1.0 is released which, as the first release of the year,
introduces the 2023 stable style. This incorporates most of last year's
preview style.
https://github.com/psf/black/releases/tag/23.1.0
Backport of 097e3a70c1481ee7b042b2edd91b2be86fb7b5b6 from main
2023-02-01 11:37:29 +01:00
Nick Pope
8a7b22d4a6
[4.2.x] Fixed CVE-2023-23969 -- Prevented DoS with pathological values for Accept-Language.
...
The parsed values of Accept-Language headers are cached in order to
avoid repetitive parsing. This leads to a potential denial-of-service
vector via excessive memory usage if the raw value of Accept-Language
headers is very large.
Accept-Language headers are now limited to a maximum length in order
to avoid this issue.
2023-02-01 09:45:07 +01:00
sage
5e0be0873c
[4.2.x] Fixed #34304 -- Made MySQL's SchemaEditor.remove_constraint() don't create foreign key index when unique constraint is ignored.
...
Regression in b731e8841558ee4caaba766c83f34ea9c7004f8b.
Backport of 110b3b83567da22f19ec04210db134d0fe83d662 from main
2023-01-31 11:52:44 +01:00
Stanislav Volyk
7217c11eba
[4.2.x] Fixed #34283 -- Escaped title in admin's changelist filters.
...
Regression in 27aa7035f57f0db30b6632e4274e18b430906799.
Backport of 20a0850099340fb4cb8df0e4441e5019b2cbd1ea from main
2023-01-30 11:58:06 +01:00
Sarah Boyce
4bf3d6dec2
[4.2.x] Fixed #28054 -- Made runserver not return response body for HEAD requests.
...
Co-authored-by: jannschu <jannik.schuerg@posteo.de>
Backport of 8acc433e415cd771f69dfe84e57878a83641e78b from main
2023-01-27 21:50:40 +01:00
Raj Desai
f210ad1b98
[4.2.x] Fixed #34254 -- Fixed return value of Exists() with empty queryset.
...
Thanks Simon Charette for reviews.
Backport of 246eb4836a6fb967880f838aa0d22ecfdca8b6f1 from main
2023-01-26 20:25:18 +01:00
Mariusz Felisiak
719a14badc
[4.2.x] Fixed #34291 -- Fixed Meta.constraints validation crash on UniqueConstraint with ordered expressions.
...
Thanks Dan F for the report.
Bug in 667105877e6723c6985399803a364848891513cc.
Backport of 2b1242abb3989f5d74e787b09132d01bcbee5b55 from main
2023-01-26 09:32:14 +01:00
朱穆穆
f23a85337a
[4.2.x] Fixed #34227 -- Fixed QuerySet.select_related() with multi-level FilteredRelation.
...
Backport of d3c93cdc597e0efc2815111c04dd5a427432ed37 from main
2023-01-24 10:52:01 +01:00
Matt Westcott
b332a96cd7
[4.2.x] Fixed #34192 -- Preserved callable storage when it returns default_storage.
...
Backport of ef85b6bf0bc5a8b194f0724cf5bbedbcee402b96 from main
2023-01-23 11:14:57 +01:00
Francesco Panico
84927e110e
[4.2.x] Fixed #34267 -- Fixed sliced QuerySet.union() crash.
...
Regression in 3d734c09ff0138441dfe0a59010435871d17950f.
Thanks Raphaël Stefanini for the report.
Backport of cc8aa6bf9c127a493e6dd005012b9e6397b3f319 from main
2023-01-20 09:25:26 +01:00
David Wobrock
3b6f307344
[4.2.x] Fixed #34272 -- Fixed floatformat crash on zero with trailing zeros to zero decimal places.
...
Regression in 08c5a787262c1ae57f6517d4574b54a5fcaad124.
Thanks Andrii Lahuta for the report.
Backport of 4b066bde692078b194709d517b27e55defae787c from main
2023-01-19 10:47:52 +01:00
Mariusz Felisiak
0e2649fdf4
Fixed #34255 -- Made PostgreSQL backend use client-side parameters binding with psycopg version 3.
...
Thanks Guillaume Andreu Sabater for the report.
Co-authored-by: Florian Apolloner <apollo13@users.noreply.github.com>
2023-01-17 08:24:08 +01:00
Mariusz Felisiak
c8a76059ff
Refs #34255 -- Bumped required psycopg version to 3.1.8.
2023-01-17 08:24:08 +01:00
sarahboyce
05bcd5baaf
Refs #30129 -- Added test for create() with F() expression in Subquery.
...
Fixed in 35431298226165986ad07e91f9d3aca721ff38ec.
2023-01-16 08:26:34 +01:00
Leo
5da5f3773e
Fixed #34234 -- Dropped support for PROJ 4.
2023-01-13 12:31:41 +01:00
Mariusz Felisiak
c2118d72d6
Fixed #34240 -- Preserved headers of requests made with django.test.Client in assertRedirects().
...
Bug in 67da22f08e05018ea968fcacbac9ac37ea925d85.
2023-01-13 11:30:27 +01:00
Jarosław Wygoda
32940d390a
Refs #26029 -- Deprecated DEFAULT_FILE_STORAGE and STATICFILES_STORAGE settings.
2023-01-12 09:58:36 +01:00
Jarosław Wygoda
1ec3f0961f
Fixed #26029 -- Allowed configuring custom file storage backends.
2023-01-12 06:20:57 +01:00
Mariusz Felisiak
d02a9f0cee
Fixed thread termination in servers.tests.LiveServerPort on Python 3.10.9+, 3.11.1+, and 3.12+.
...
Class cleanups registered in TestCase subclasses are no longer called
as TestCase.doClassCleanups() only cleans up the particular class, see
c2102136be
2023-01-12 06:04:10 +01:00