Clifford Gama
304e9f3d6a
Fixed #36202 -- Added examples of JSONField __contains and __contained_by lookups with nested arrays to docs.
2025-03-18 21:54:10 +01:00
Clifford Gama
611e7bc3a0
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>
2025-03-18 16:49:53 +01:00
Adam Johnson
0dcc4a1dbc
Configured GitHub to highlight HTML files as Django templates.
2025-03-18 11:30:52 -03:00
Sarah Boyce
afbb8c709d
Handled WebDriverException from Chrome driver version 113+.
2025-03-18 10:52:01 +01:00
Sarah Boyce
8f400a7ff0
Made selenium tests less flaky by waiting until popups are closed and page is loaded.
2025-03-18 10:52:01 +01:00
Mike Edmunds
90fc762948
Refs #36138 -- Cleaned up duplicate code in mail_admins()/mail_managers().
2025-03-18 10:08:09 +01:00
Mike Edmunds
62ad970c39
Refs #36138 -- Improved tests for mail_admins() and mail_managers().
...
- Separated MailTests.test_connection_arg test cases.
- Expanded test cases for incorrect values of ADMINS/MANAGERS settings.
- Added test case verifying correct values of ADMINS/MANAGERS settings.
2025-03-18 10:08:09 +01:00
fowczrek
6a9db1e626
Fixed #34865 -- Released memory earlier than garbage collection on database wrapping layers.
...
Thank you Florian Apolloner, Jake Howard and Patryk Zawadzki for
the clarifying comments and reviews.
2025-03-17 18:28:20 -03:00
hesham942
e804a07d76
Fixed #36252 -- Handled duplicate automatic imports in the shell command.
2025-03-17 16:29:28 -03:00
Mariusz Felisiak
1823a80113
Fixed #33537 -- Made test database cloning on MySQL reraise unexpected errors.
...
Thanks Faakhir Zahid and Stephen Finucane for the initial patch.
Thanks Simon Charette for the review.
2025-03-17 15:45:08 +01:00
YQ
30e0a43937
Fixed #36254 -- Fixed template dictionary unpacking in docs/topics/i18n/timezones.txt.
2025-03-17 09:45:15 +01:00
Clifford Gama
ef6a83789b
Fixed pronoun disagreement in docs/ref/models/querysets.txt.
2025-03-14 10:47:06 +01:00
Clifford Gama
3235e76eb5
Corrected aggregation example in docs/ref/models/querysets.txt.
2025-03-14 10:47:06 +01:00
Clifford Gama
efe3ca09e0
Fixed incorrect formatting for inline pluralized code references in docs.
2025-03-13 15:18:35 -03:00
Mariusz Felisiak
e7a9d756ee
Refs #35945 -- Fixed test_paginating_unordered_queryset_raises_warning_async() test on byte-compiled Django.
2025-03-13 11:06:44 +01:00
hesham hatem
e03440291b
Fixed #36249 -- Fixed typo in docs/topics/db/queries.txt.
2025-03-12 18:09:04 -03:00
Adam Johnson
27b68bcadf
Fixed #36234 -- Restored single_object argument to LogEntry.objects.log_actions().
...
Thank you Adam Johnson for the report and fix. Thank you Sarah Boyce for
your spot on analysis.
Regression in c09bceef68e5abb79accedd12dade16aa6577a09, which is
partially reverted in this branch.
Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
2025-03-12 16:25:28 -03:00
Sarah Boyce
ed984f2ac4
Refs #34380 -- Fixed the documented URLField default scheme to https.
...
Missed in 9a3f86e96009c1137b286f6d579b9d812a0dee69.
2025-03-12 16:45:08 +01:00
Adam Johnson
c70dbcf835
Refs #25582 -- Doc'd query and fragment arguments for reverse_lazy().
2025-03-12 16:41:44 +01:00
Hisham Mahmood
955b7c6ba1
Removed duplicate entries in docs/releases/5.2.txt.
2025-03-12 11:04:21 +01:00
wookkl
2ae3044d9d
Fixed #35945 -- Added async interface to Paginator.
2025-03-12 09:22:44 +01:00
Clifford Gama
0ebea6e5c0
Fixed #35676 -- Made BaseModelForm validate constraints that reference an InlineForeignKeyField.
...
Co-authored-by: Simon Charette <charette.s@gmail.com>
2025-03-12 09:16:15 +01:00
haileyajohnson
5183f7c287
Fixed #35816 -- Handled parsing of scientific notation in DTL. ( #19213 )
...
* Refs #35816 -- Improved test coverage of FilterExpression.
* Fixed #35816 -- Made FilterExpression parse scientific numbers.
---------
Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
2025-03-11 08:02:27 +01:00
Tom Carrick
8df5ce80d2
Fixed #36177 -- Added a trailing newline to JSON serializer. ( #19232 )
2025-03-11 08:01:06 +01:00
Simon Charette
ab148c02ce
Fixed #33579 -- Specialized exception raised on forced update failures.
...
Raising DatabaseError directly made it harder than it should to
differentiate between IntegrityError when a forced update resulted in no
affected rows.
Introducing a specialized exception allows for callers to more easily
silence, log, or turn them update failures into user facing exceptions
(e.g. 404s).
Thanks Mariusz for the review.
2025-03-10 21:09:15 +01:00
saJaeHyukc
c1257350ca
Fixed #36222 -- Fixed ExclusionConstraint validation crash on excluded fields in condition.
...
Signed-off-by: saJaeHyukc <wogur981208@gmail.com>
2025-03-10 20:11:01 +01:00
Mariusz Felisiak
e44e8327d3
Used _expression_refs_exclude() hook in CheckConstraint/UniqueConstraint.validate().
2025-03-10 13:19:38 +01:00
saJaeHyukc
f480d5d3ed
Fixed #36201 -- Caught ValidationError in ModelChoiceField/ModelMultipleChoiceField.clean().
...
Signed-off-by: saJaeHyukc <wogur981208@gmail.com>
2025-03-10 13:01:02 +01:00
samruddhiDharankar
9120a19c4e
Fixed #36066 -- Documented that Q objects can be used directly in annotations.
2025-03-10 12:54:23 +01:00
petr.prikryl
2a5aca38bb
Fixed #35487 -- Removed CASCADE from RemoveField() on PostgreSQL.
...
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
Co-authored-by: Adam Johnson <me@adamj.eu>
Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
2025-03-09 11:50:17 +01:00
Sarah Boyce
de1117ea8e
Fixed #36224 -- Fixed shell imports when settings not configured.
...
Thank you Raffaella for the report. Thank you Tim Schilling and Natalia Bidart
for the reviews.
2025-03-07 15:34:56 +01:00
Sarah Boyce
647dca4132
Corrected test case in ExclusionConstraintTests.test_invalid_expressions().
2025-03-07 11:28:00 +01:00
Sarah Boyce
bad1a18ff2
Added CVE-2025-26699 to security archive.
2025-03-06 14:04:36 +01:00
Sarah Boyce
193e3446e3
Added stub release notes for 5.1.8.
2025-03-06 13:31:08 +01:00
Sarah Boyce
55d89e25f4
Fixed CVE-2025-26699 -- Mitigated potential DoS in wordwrap template filter.
...
Thanks sw0rd1ight for the report.
2025-03-06 09:38:40 +01:00
Tim Graham
9a729fb61a
Clarified cryptic comment in django/core/cache/backends/redis.py.
2025-03-05 22:02:23 -03:00
hesham942
8f942f1c1d
Fixed typo in docs/ref/checks.txt.
2025-03-05 16:20:38 +01:00
hesham942
3ecaa85a24
Fixed #36227 -- Fixed outdated PostgreSQL documentation links.
2025-03-05 15:06:54 +01:00
Jacob Walls
5a8b088a76
Fixed typo in django/db/backends/postgresql/psycopg_any.py comment.
2025-03-05 10:40:13 +01:00
Clifford Gama
ae2736ca3b
Fixed #36128 -- Clarified auto-generated unique constraint on m2m through models.
2025-03-04 13:06:09 +01:00
antoliny0919
c09bceef68
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>
2025-03-04 10:34:15 +01:00
Chris Muthig
1759c1dbd1
Refs #35444 -- Deprecated contrib.postgres.OrderableAggMixin.
...
This commit does not create any functional changes, but marks the
existing `OrderableAggMixin` class as deprecated so that developers
using it directly can be made aware of its future removal.
2025-03-03 11:37:00 +01:00
Chris Muthig
4b977a5d72
Fixed #35444 -- Added generic support for Aggregate.order_by.
...
This moves the behaviors of `order_by` used in Postgres aggregates into
the `Aggregate` class. This allows for creating aggregate functions that
support this behavior across all database engines. This is shown by
moving the `StringAgg` class into the shared `aggregates` module and
adding support for all databases. The Postgres `StringAgg` class is now
a thin wrapper on the new shared `StringAgg` class.
Thank you Simon Charette for the review.
2025-03-03 11:37:00 +01:00
Tim Graham
6d1cf5375f
Added some heading labels to to docs/topics/cache.txt.
2025-03-02 19:55:04 +01:00
Simon Charette
fc30355107
Fixed #36198 -- Implemented unresolved transform expression replacement.
...
This allows the proper resolving of F("field__transform") when
performing constraint validation.
Thanks Tom Hall for the report and Sarah for the test.
2025-03-01 19:57:53 +01:00
Mariusz Felisiak
ff3aaf036f
Applied Black's 2025 stable style.
...
https://github.com/psf/black/releases/tag/25.1.0
2025-03-01 19:41:37 +01:00
Sarah Boyce
ea1e3703be
Added stub release notes and release date for 5.1.7, 5.0.13, and 4.2.20.
2025-02-27 16:03:26 +01:00
Jacob Walls
77666f2fa1
Refs #35617 -- Removed hardcoded pk in test_bulk_update_custom_get_prep_value().
2025-02-27 09:42:08 +01:00
Clifford Gama
5a1cae3a56
Removed outdated docstring in tests/basic/models.py.
2025-02-25 15:22:08 +01:00
Jonathan Ströbele
240421c7c4
Fixed #36186 -- Added forloop.length variable within a template for loop.
2025-02-24 16:25:53 +01:00