1
0
mirror of https://github.com/django/django.git synced 2025-03-14 19:30:46 +00:00

4879 Commits

Author SHA1 Message Date
antoliny0919
03ace756ea [5.1.x] Fixed #36217 -- Restored pre_save/post_save signal emission via LogEntry.save() for single-object deletion in the admin.
Regression in 40b3975e7d3e1464a733c69171ad7d38f8814280.

Thanks smiling-watermelon for the report.

Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>

Backport of c09bceef68e5abb79accedd12dade16aa6577a09 from main.
2025-03-04 10:38:15 +01:00
Sarah Boyce
558c616c95 [5.1.x] Added stub release notes and release date for 5.1.7, 5.0.13, and 4.2.20.
Backport of ea1e3703bee28bfbe4f32ceb39ad31763353b143 from main.
2025-02-27 16:08:13 +01:00
Simon Charette
8488074fe3 [5.1.x] Fixed #36197 -- Fixed improper many-to-many count() and exists() for non-pk to_field.
Regression in 66e47ac69a7e71cf32eee312d05668d8f1ba24bb.

Thanks mfontana-elem for the report and Sarah for the tests.

Backport of c3a23aa02faa1cf1d32e43d66858e793cd9ecac4 from main.
2025-02-18 11:45:45 +01:00
Gaël Utard
a9d03c4094 [5.1.x] Fixed #36191 -- Truncated the overwritten file content in FileSystemStorage.
Backport of 0d1dd6bba0c18b7feb6caa5cbd8df80fbac54afd from main.
2025-02-17 14:06:03 +01:00
Sarah Boyce
65113401f1 [5.1.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 05002c153c5018e4429a326a6699c7c45e5ea957 from main.
2025-02-13 15:57:56 +01:00
Natalia
e7a9d20380 [5.1.x] Added stub release notes for 5.1.7.
Backport of e2a8f4dac8ed2b3667a4367756043b1e119f4ce2 from main.
2025-02-05 11:21:56 -03:00
Natalia
df27e43234 [5.1.x] Added release date for 5.1.6, 5.0.12, and 4.2.19.
Backport of 294cc965efe0dfc8457aa5a8e78cb6d53abfcf92 from main.
2025-02-05 10:40:13 -03:00
nessita
8552eef95e [5.1.x] Fixed #36140 -- Allowed BaseUserCreationForm to define non required password fields.
Regression in e626716c28b6286f8cf0f8174077f3d2244f3eb3.

Thanks buffgecko12 for the report and Sarah Boyce for the review.

Backport of d15454a6e84a595ffc8dc1b926282f484f782a8f from main.
2025-02-01 22:51:06 -03:00
nessita
4f0169e94f [5.1.x] Tweaked docs to avoid reformatting given new black version.
Backport of fd3cfd80bebad292d639a03e58632e494369eb92 from main.
2025-01-30 10:39:08 -03:00
Mariusz Felisiak
c81669cb54 [5.1.x] Fixed #36098 -- Fixed validate_ipv6_address()/validate_ipv46_address() crash for non-string values.
Regression in ca2be7724e1244a4cb723de40a070f873c6e94bf.

Backport of b3c5830769d8a5dbf2f974da7116fe503c9454d9 from main.
2025-01-15 13:47:13 -03:00
Natalia
dd2247d5fd [5.1.x] Added CVE-2024-56374 to security archive.
Backport of f2a1dcaa53626ff11b921ef142b780a8fd746d32 from main.
2025-01-14 11:39:03 -03:00
Natalia
7b8fca716d [5.1.x] Added stub release notes for 5.1.6.
Backport of 3b46bea90933b8fb24f4ddfa8a3943032a5a370e from main.
2025-01-14 11:34:16 -03:00
Michael Manfre
4806731e58 [5.1.x] Fixed CVE-2024-56374 -- Mitigated potential DoS in IPv6 validation.
Thanks Saravana Kumar for the report, and Sarah Boyce and Mariusz
Felisiak for the reviews.

Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2025-01-14 08:44:20 -03:00
Natalia
d6749de927 [5.1.x] Made cosmetic edits to 5.1.5 release notes.
Backport of 9a2dd9789a2edeed7344a8ec0d17142ad27443a1 from main.
2025-01-14 08:34:40 -03:00
Natalia
0966cc7364 [5.1.x] Added stub release notes and release date for 5.1.5, 5.0.11, and 4.2.18.
Backport of 53e21eebf22bc05c7fa30820b453b7f345b7af40 from main.
2025-01-07 12:32:08 -03:00
Andrés Reverón Molina
2ee6ca6d35 [5.1.x] Fixed #34856 -- Fixed references to index_together in historical migrations.
While AlterUniqueTogether has been documented to be still allowed in historical
migrations for the foreseeable future it has been crashing since 2abf417c815c20
was merged because the latter removed support for Meta.index_together which the
migration framework uses to render models to perform schema changes.

CreateModel(options["unique_together"]) was also affected.

Refs #27236.

Co-authored-by: Simon Charette <charette.s@gmail.com>

Backport of b44efdfe543c9b9f12690b59777e6b275cb08103 from main.
2024-12-17 10:01:51 +01:00
Sarah Boyce
65e8c8f776 [5.1.x] Cleaned up CVE-2024-53907 and CVE-2024-53908 security archive descriptions.
Backport of eb665e076ca3417eb0ac654aed9e9c1853c5af84 from main.
2024-12-04 17:01:12 +01:00
Sarah Boyce
d972812d82 [5.1.x] Added CVE-2024-53907 and CVE-2024-53908 to security archive.
Backport of 595cb4a7aeb1ba1770d10d601ce9a2b4e487c46e from main.
2024-12-04 16:31:03 +01:00
Sarah Boyce
22dca34036 [5.1.x] Added stub release notes for 5.1.5.
Backport of 828afd782f8bc019401075bd51fad039cc5ceff0 from main.
2024-12-04 16:25:26 +01:00
Simon Charette
6943d61818 [5.1.x] Fixed CVE-2024-53908 -- Prevented SQL injections in direct HasKeyLookup usage on Oracle.
Thanks Seokchan Yoon for the report, and Mariusz Felisiak and Sarah
Boyce for the reviews.
2024-12-04 13:47:31 +01:00
Sarah Boyce
bbc74a7f7e [5.1.x] Fixed CVE-2024-53907 -- Mitigated potential DoS in strip_tags().
Thanks to jiangniao for the report, and Shai Berger and Natalia Bidart
for the reviews.
2024-12-04 13:47:21 +01:00
Adam Johnson
6e3e7353e0 [5.1.x] Fixed #35950 -- Restored refreshing of relations when fields deferred.
Thank you to Simon Charette and Sarah Boyce for the review.

Regression in 73df8b54a2fab53bec4c7573cda5ad8c869c2fd8.

Backport of 2f6b096b83c55317c7ceef2d8d5dc3bee33293dc from main.
2024-12-02 16:05:11 +01:00
Sarah Boyce
5f82a5e4c7 [5.1.x] Added stub release notes and release date for 5.1.4, 5.0.10, and 4.2.17.
Backport of 2544c1585473c1e82dab1274b52052744f97ca72 from main.
2024-11-27 15:42:58 +01:00
Tommy Allen
4b262408aa [5.1.x] Fixed #35942 -- Fixed createsuperuser crash on Python 3.13+ when username is unavailable.
Thanks Mariusz Felisiak and Jacob Tyler Walls for reviews.

Backport of c635decb00ac957daf81c08541cdc9cf46f6d86d from main.
2024-11-26 17:16:30 -03:00
Mariusz Felisiak
a0d8fad23e [5.1.x] Added stub release notes for 5.1.4.
Backport of 2d41e40ddfe90de4bc1ceeba38bbe1f6eb4ce7ce from main
2024-11-05 06:32:04 +01:00
Mariusz Felisiak
e3984ca5d1 [5.1.x] Added release date for 5.1.3.
Backport of ecd81ac8b786ac6f4e8a5626e0d029bcb11064a5 from main
2024-11-05 05:56:39 +01:00
Sarah Boyce
9fa2d235c9 [5.1.x] Fixed #35876 -- Displayed non-ASCII fieldset names when rendering ModelAdmin.fieldsets.
Thank you to Namhong Kim for the report, and to Mariusz Felisiak and Marijke Luttekes for the review.

Regression in 01ed59f753139afb514170ee7f7384c155ecbc2d.

Backport of 2c029c718f45341cdd43ee094c24488743c633e6 from main.
2024-10-31 06:41:10 +01:00
Nick Pope
51eb666758 [5.1.x] Fixed #35841 -- Restored support for DB-IP databases in GeoIP2.
Thanks Felix Farquharson for the report and Claude Paroz for the
review.

Regression in 40b5b1596f7505416bd30d5d7582b5a9004ea7d5.

Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>

Backport of 3fad712a91a8a8f6f6f904aff3d895e3b06b24c7 from main.
2024-10-17 21:42:06 -03:00
Justin Thurman
3ba8b0dae8 [5.1.x] Fixed #35845 -- Updated DomainNameValidator to require entire string to be a valid domain name.
Bug in 4971a9afe5642569f3dcfcd3972ebb39e88dd457.

Thank you to kazet for the report and Claude Paroz for the review.

Backport of 99dcc59237f384d7ade98acfd1cae8d90e6d60ab from main.
2024-10-17 17:00:35 +02:00
Mariusz Felisiak
e2551b30ad [5.1.x] Refs #34900 -- Doc'd Python 3.13 compatibility.
Backport of 2e3bc59fd3760de87952ec8fd6cd3694e8d9dc1c from main.
2024-10-09 09:56:42 +02:00
Natalia
52f2996b9b [5.1.x] Added stub release notes for 5.1.3.
Backport of 4d11402932eca570850bdfa58a71eb59fc62275a from main.
2024-10-08 12:04:53 -03:00
Natalia
6e07a7769f [5.1.x] Added release date for 5.1.2.
Backport of 5bb433e99bc24625295e05448fdf173dc72028ad from main.
2024-10-08 11:39:02 -03:00
nessita
17fa7592af [5.1.x] Fixed #35809 -- Set background color for selected rows in the admin's form select widget.
Regression in b47bdb4cd9149ee2a39bf1cc9996a36a940bd7d9.

Thank you Giannis Terzopoulos for the review, and Tom Carrick and Sarah Boyce
for the review.

Backport of 679d57816d716cbc7cff3b364ae265d70444ebd9 from main.
2024-10-08 10:02:33 -03:00
nessita
e245f62d00
[5.1.x] Updated translations from Transifex. 2024-10-07 17:35:43 -03:00
John Parton
22bce642a9 [5.1.x] Fixed #35734 -- Used JSONB_BUILD_OBJECT database function on PostgreSQL when using server-side bindings.
Regression in 81ccf92f154c6d9eac3e30bac0aa67574d0ace15.

Backport of f22ff4561ada77be98ca4db3ce117caca897696e from main.
2024-09-26 16:22:59 +02:00
Gastón Avila
590f5e09f0 [5.1.x] Fixed #35732 -- Wrapped ConcatPair expression in parentheses to ensure operator precedence.
When ConcatPair was updated to use || this lost the implicit wrapping from CONCAT(...).
This broke the WHERE clauses when used in combination with PostgreSQL trigram similarity.

Regression in 6364b6ee1071381eb3a23ba6b821fc0d6f0fce75.

Backport of c3ca6075cc0ad425bcf905fe14062f38eb9fbcbf from main.

Co-authored-by: Emiliano Cuenca <106986074+emicuencac@users.noreply.github.com>
2024-09-11 14:40:48 +02:00
Natalia
1b7b5e0d17 [5.1.x] Added CVE-2024-45230 and CVE-2024-45231 to security archive.
Backport of aa5293068782dfa2d2173c75c8477f58a9989942 from main.
2024-09-03 11:24:09 -03:00
Natalia
669bc196c9 [5.1.x] Added stub release notes for 5.1.2.
Backport of 60073a3e6bece123b95b226d191873e81b54aab1 from main.
2024-09-03 10:02:23 -03:00
Natalia
3c733c78d6 [5.1.x] Fixed CVE-2024-45231 -- Avoided server error on password reset when email sending fails.
On successful submission of a password reset request, an email is sent
to the accounts known to the system. If sending this email fails (due to
email backend misconfiguration, service provider outage, network issues,
etc.), an attacker might exploit this by detecting which password reset
requests succeed and which ones generate a 500 error response.

Thanks to Thibaut Spriet for the report, and to Mariusz Felisiak, Adam
Johnson, and Sarah Boyce for the reviews.
2024-09-03 09:24:21 -03:00
Sarah Boyce
022ab0a75c [5.1.x] Fixed CVE-2024-45230 -- Mitigated potential DoS in urlize and urlizetrunc template filters.
Thanks MProgrammer (https://hackerone.com/mprogrammer) for the report.
2024-09-03 09:24:13 -03:00
Sarah Boyce
6203965960 [5.1.x] Fixed #35716 -- Fixed VariableDoesNotExist when rendering admin fieldsets.
Regression in 01ed59f753139afb514170ee7f7384c155ecbc2d.

Thank you to Fábio Domingues and Marijke Luttekes for the report,
and thank you to Natalia Bidart for the review.

Backport of fd1dd767783b5a7ec1a594fcc5885e7e4178dd26 from main.
2024-08-30 20:52:41 +02:00
Sarah Boyce
26c06671d9 [5.1.x] Fixed #35688 -- Restored timezone and role setters to be PostgreSQL DatabaseWrapper methods.
Following the addition of PostgreSQL connection pool support in
Refs #33497, the methods for configuring the database role and timezone
were moved to module-level functions. This change prevented subclasses
of DatabaseWrapper from overriding these methods as needed, for example,
when creating wrappers for other PostgreSQL-based backends.

Thank you Christian Hardenberg for the report and to
Florian Apolloner and Natalia Bidart for the review.

Regression in fad334e1a9b54ea1acb8cce02a25934c5acfe99f.

Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>

Backport of 7380ac57340653854bc2cfe0ed80298cdac6061d from main.
2024-08-28 19:25:55 -03:00
Simon Charette
dd58edcc37 [5.1.x] Refs #35405 -- Adjusted deprecation warning stacklevel in FieldCacheMixin.get_cache_name().
Backport of 39abd56a7fb1e2f735040df0fdfc08f57d91a49b from main.
2024-08-28 11:46:49 -03:00
Simon Charette
8f5d2c374a [5.1.x] Refs #35326 -- Adjusted deprecation warning stacklevel in FileSystemStorage.OS_OPEN_FLAGS.
Backport of 47f18a722624527cc72eef44cfc9d1e07ea4b4e0 from main.
2024-08-28 11:46:23 -03:00
Simon Charette
c87007ab60 [5.1.x] Refs #35060 -- Adjusted deprecation warning stacklevel in Model.save()/asave().
Backport of 52ed2b645e1dd8c9a874cfd21c4c9f2500032626 from main.
2024-08-28 11:45:35 -03:00
Natalia
f362c3dea2 [5.1.x] Fixed grammatical error in stub release notes for upcoming security release.
Backport of b941de340daed4ce88f04a8012b9dba00ccb1359 from main.
2024-08-27 09:49:52 -03:00
Natalia
e0ba8af1b4 [5.1.x] Added stub release notes and release date for 5.1.1, 5.0.9, and 4.2.16.
Backport of 67efd42517af0faf24872df4295b39e98ce826af from main.
2024-08-27 09:26:40 -03:00
Natalia
da22e6cb3c [5.1.x] Fixed #35678 -- Removed "usable_password" field from BaseUserCreationForm.
Refs #34429: Following the implementation allowing the setting of
unusable passwords via the admin site, the `BaseUserCreationForm` and
`UserCreationForm` were extended to include a new field for choosing
whether password-based authentication for the new user should be enabled
or disabled at creation time.
Given that these forms are designed to be extended when implementing
custom user models, this branch ensures that this new field is moved to
a new, admin-dedicated, user creation form `AdminUserCreationForm`.

Regression in e626716c28b6286f8cf0f8174077f3d2244f3eb3.

Thanks Simon Willison for the report, Fabian Braun and Sarah Boyce for
the review.

Backport of 0ebed5fa95f53b87383901bbd9341ef3c974344f from main.
2024-08-19 12:41:23 -03:00
Simon Charette
df236b0bcb [5.1.x] Fixed #35665 -- Fixed a crash when passing an empty order_by to Window.
This also caused un-ordered sliced prefetches to crash as they rely on Window.

Regression in e16d0c176e9b89628cdec5e58c418378c4a2436a that made OrderByList
piggy-back ExpressionList without porting the empty handling that the latter
provided.

Supporting explicit empty ordering on Window functions and slicing is arguably
a foot-gun design due to how backends will return undeterministic results but
this is a problem that requires a larger discussion.

Refs #35064.

Thanks Andrew Backer for the report and Mariusz for the review.

Backport of 602fe961e6834d665f2359087a1272e9f9806b71 from main.
2024-08-13 11:28:03 +02:00
Adam Johnson
291fa5fbbe [5.1.x] Refs #31405 -- Improved LoginRequiredMiddleware documentation.
co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>

Backport of 49815f70e4508ae21135f725da177fc2935de32c from main.
2024-08-08 10:07:12 +02:00