Commit graph

14489 commits

Author SHA1 Message Date
khosro
4130fe8376
Merge 95d3c51b58 into 1ce6e78dd4 2025-11-17 20:42:14 +02:00
Mariusz Felisiak
1ce6e78dd4
Fixed #24920 -- Added support for DecimalField with no precision.
Some checks are pending
Docs / lint-docs (push) Waiting to run
Docs / blacken-docs (push) Waiting to run
Docs / spelling (push) Waiting to run
Linters / flake8 (push) Waiting to run
Linters / isort (push) Waiting to run
Linters / black (push) Waiting to run
Tests / Windows, SQLite, Python 3.14 (push) Waiting to run
Tests / JavaScript tests (push) Waiting to run
Thanks Lily for the review.
2025-11-17 13:43:47 +01:00
Mariusz Felisiak
35f86b641a
Refs #24928 -- Added introspection support for PostgreSQL HStoreField. 2025-11-14 13:36:15 +01:00
Kasyap Pentamaraju
7e765a6859 Fixed #36686 -- Clarified Meta.ordering is ignored in GROUP BY queries. 2025-11-13 11:18:02 -05:00
Benedict Etzel
5401b125ab Fixed #36717 -- Redirect authenticated users on admin login view to next URL.
Some checks are pending
Docs / spelling (push) Waiting to run
Docs / blacken-docs (push) Waiting to run
Docs / lint-docs (push) Waiting to run
Linters / flake8 (push) Waiting to run
Linters / isort (push) Waiting to run
Linters / black (push) Waiting to run
Tests / Windows, SQLite, Python 3.14 (push) Waiting to run
Tests / JavaScript tests (push) Waiting to run
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2025-11-12 19:42:24 -03:00
Clifford Gama
2b0f24e622
Fixed typo in docs/ref/databases.txt.
Some checks failed
Linters / flake8 (push) Waiting to run
Linters / isort (push) Waiting to run
Linters / black (push) Waiting to run
Tests / Windows, SQLite, Python 3.14 (push) Waiting to run
Tests / JavaScript tests (push) Waiting to run
Docs / lint-docs (push) Has been cancelled
Docs / spelling (push) Has been cancelled
Docs / blacken-docs (push) Has been cancelled
2025-11-10 17:59:38 -03:00
Clifford Gama
c135be349d
Clarified "get_db_prep_value" default result in docs/ref/models/fields.txt. 2025-11-10 14:11:28 -03:00
Hong Xu
a4f7674134 Clarified EmailValidator docs to specify it validates an email address.
Some checks are pending
Docs / spelling (push) Waiting to run
Docs / blacken-docs (push) Waiting to run
Docs / lint-docs (push) Waiting to run
Updated the EmailValidator docs in docs/ref/validators.txt to explicitly
state that it validates an email address, to avoid confusion with
validating email message content.
2025-11-10 12:51:51 -03:00
Kasyap Pentamaraju
1c7db70e79 Fixed #36705 -- Avoided string concatenation in utils.
Repeated string concatenation performs poorly on PyPy.
Thanks Seokchan Yoon for the report.
2025-11-07 14:06:42 -05:00
Thomas Grainger
2768747526 Fixed #36315 -- Used TaskGroup instead of asyncio.gather(). 2025-11-07 13:17:25 -05:00
Tim Schilling
5ef870fbc5 Removed community packages admonition from settings docs.
Some checks are pending
Docs / spelling (push) Waiting to run
Docs / blacken-docs (push) Waiting to run
Docs / lint-docs (push) Waiting to run
Linters / flake8 (push) Waiting to run
Linters / isort (push) Waiting to run
Linters / black (push) Waiting to run
Tests / Windows, SQLite, Python 3.14 (push) Waiting to run
Tests / JavaScript tests (push) Waiting to run
2025-11-06 15:50:59 -05:00
Tim Schilling
47ac64ed8b Added community package email backends mention to docs.
Co-authored-by: Clifford Gama <cliffygamy@gmail.com>
2025-11-06 15:50:59 -05:00
Natalia
c5a107e824 Added CVE-2025-64458 and CVE-2025-64459 to security archive. 2025-11-05 11:17:12 -03:00
Natalia
6e18c078d5 Added stub release notes for 5.2.9. 2025-11-05 11:12:30 -03:00
Jacob Walls
98e642c691 Fixed CVE-2025-64459 -- Prevented SQL injections in Q/QuerySet via the _connector kwarg.
Thanks cyberstan for the report, Sarah Boyce, Adam Johnson, Simon
Charette, and Jake Howard for the reviews.
2025-11-05 09:20:57 -03:00
Jacob Walls
c880530ddd Fixed CVE-2025-64458 -- Mitigated potential DoS in HttpResponseRedirect/HttpResponsePermanentRedirect on Windows.
Thanks Seokchan Yoon for the report, Markus Holtermann for the
triage, and Jake Howard for the review.

Follow-up to CVE-2025-27556 and 39e2297210.
2025-11-05 09:20:57 -03:00
Hal Blackburn
74564946c3 Fixed #36704 -- Fixed system check error for proxy model with a composite pk.
Some checks are pending
Docs / spelling (push) Waiting to run
Docs / blacken-docs (push) Waiting to run
Docs / lint-docs (push) Waiting to run
Linters / flake8 (push) Waiting to run
Linters / isort (push) Waiting to run
Linters / black (push) Waiting to run
Tests / Windows, SQLite, Python 3.14 (push) Waiting to run
Tests / JavaScript tests (push) Waiting to run
Proxy models subclassing a model with a CompositePrimaryKey were
incorrectly reporting check errors because the check that requires only
local fields to be used in a composite pk was evaluated against the proxy
subclass, which has no fields.

To fix this, composite pk field checks are not evaluated against
proxy subclasses, as none of the checks are applicable to proxy
subclasses. This also has the benefit of not double-reporting real check
errors from an invalid superclass pk.

Thanks Clifford Gama for the review.
2025-11-04 11:59:21 -05:00
ontowhee
eaf7b563a5 Updated ticket triage process diagram and contributing docs. 2025-11-04 09:38:03 -03:00
Mariusz Felisiak
05ba1a9228
Fixed #36661 -- Added introspection of database-level delete options.
Some checks failed
Docs / spelling (push) Has been cancelled
Docs / blacken-docs (push) Has been cancelled
Docs / lint-docs (push) Has been cancelled
Linters / flake8 (push) Has been cancelled
Linters / isort (push) Has been cancelled
Linters / black (push) Has been cancelled
Tests / Windows, SQLite, Python 3.14 (push) Has been cancelled
Tests / JavaScript tests (push) Has been cancelled
2025-10-31 14:33:27 +01:00
Tim Schilling
340e4f832e Added community package storage backends mention to docs.
Some checks are pending
Docs / spelling (push) Waiting to run
Docs / blacken-docs (push) Waiting to run
Docs / lint-docs (push) Waiting to run
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
2025-10-30 17:21:28 -04:00
Clifford Gama
7fc9db1c6a Refs #35381 -- Clarified key and index lookup handling of None in exact lookup docs.
Some checks failed
Linters / isort (push) Waiting to run
Linters / flake8 (push) Waiting to run
Linters / black (push) Waiting to run
Tests / Windows, SQLite, Python 3.14 (push) Waiting to run
Tests / JavaScript tests (push) Waiting to run
Docs / spelling (push) Has been cancelled
Docs / blacken-docs (push) Has been cancelled
Docs / lint-docs (push) Has been cancelled
2025-10-29 15:00:52 -04:00
Clifford Gama
348ca84538 Refs #35381 -- Deprecated using None in JSONExact rhs to mean JSON null.
Key and index lookups are exempt from the deprecation.

Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
2025-10-29 15:00:52 -04:00
Clifford Gama
be7f68422d Refs #35381 -- Delegated ArrayField element prepping to base_field.get_db_prep_save.
Previously, ArrayField always used base_field.get_db_prep_value when saving,
which could differ from how base_field prepares data for save. This change
overrides ArrayField.get_db_prep_save to delegate to the base_field's
get_db_prep_save, ensuring elements like None in JSONField arrays are saved
correctly as SQL NULL instead of JSON null.
2025-10-29 15:00:52 -04:00
Clifford Gama
adc25a9a66 Fixed #35381 -- Added JSONNull() expression.
Thanks Jacob Walls for the review.
2025-10-29 15:00:52 -04:00
Jacob Walls
ab108bf94d Added stub release notes and release date for 5.2.8, 5.1.14, and 4.2.26. 2025-10-29 14:57:45 -03:00
Clifford Gama
01f8460653
Fixed #36329 -- Removed non-code custom link text when cross-referencing Python objects.
Thanks Bruno Alla, Sarah Boyce, and Jacob Walls for reviews.

Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
2025-10-29 11:32:12 -04:00
Kasyap Pentamaraju
0ea01101c3 Fixed #36681 -- Removed English pluralization bias from example in docs/topics/i18n/translation.txt. 2025-10-27 14:41:53 -04:00
Mariusz Felisiak
c87daabbf3
Fixed #36624 -- Dropped support for MySQL < 8.4.
Some checks are pending
Docs / spelling (push) Waiting to run
Docs / blacken-docs (push) Waiting to run
Docs / lint-docs (push) Waiting to run
Linters / flake8 (push) Waiting to run
Linters / isort (push) Waiting to run
Linters / black (push) Waiting to run
Tests / JavaScript tests (push) Waiting to run
Tests / Windows, SQLite, Python 3.14 (push) Waiting to run
2025-10-27 15:05:23 +01:00
Annabelle Wiegart
7423918125
Fixed #35095 -- Clarified Swiss number formatting in docs/topics/i18n/formatting.txt.
Some checks failed
Linters / isort (push) Waiting to run
Linters / black (push) Waiting to run
Tests / Windows, SQLite, Python 3.14 (push) Waiting to run
Tests / JavaScript tests (push) Waiting to run
Linters / flake8 (push) Waiting to run
Docs / spelling (push) Has been cancelled
Docs / lint-docs (push) Has been cancelled
Docs / blacken-docs (push) Has been cancelled
Co-authored-by: Ahmed Nassar <a.moh.nassar00@gmail.com>
2025-10-23 10:11:52 -04:00
Natalia
42d6e20feb Made cosmetic edits to docs/releases/6.0.txt.
Some checks are pending
Docs / spelling (push) Waiting to run
Docs / blacken-docs (push) Waiting to run
Docs / lint-docs (push) Waiting to run
2025-10-22 15:37:52 -03:00
Mariusz Felisiak
ca3e0484ef
Refs #36005 -- Bumped minimum supported versions of docutils to 0.22.
Some checks failed
Linters / flake8 (push) Waiting to run
Linters / isort (push) Waiting to run
Linters / black (push) Waiting to run
Tests / Windows, SQLite, Python 3.14 (push) Waiting to run
Tests / JavaScript tests (push) Waiting to run
Docs / blacken-docs (push) Has been cancelled
Docs / spelling (push) Has been cancelled
Docs / lint-docs (push) Has been cancelled
2025-10-19 20:13:16 +02:00
Mariusz Felisiak
d506e4a528
Fixed #36671 -- Dropped support for SQLite < 3.37.
Some checks are pending
Docs / spelling (push) Waiting to run
Docs / blacken-docs (push) Waiting to run
Docs / lint-docs (push) Waiting to run
Linters / flake8 (push) Waiting to run
Linters / isort (push) Waiting to run
Linters / black (push) Waiting to run
Tests / Windows, SQLite, Python 3.14 (push) Waiting to run
Tests / JavaScript tests (push) Waiting to run
2025-10-18 21:04:11 +02:00
Mariusz Felisiak
0c487aa3a7
Fixed #21961 -- Added support for database-level delete options for ForeignKey.
Some checks are pending
Docs / spelling (push) Waiting to run
Docs / blacken-docs (push) Waiting to run
Docs / lint-docs (push) Waiting to run
Linters / flake8 (push) Waiting to run
Linters / isort (push) Waiting to run
Linters / black (push) Waiting to run
Tests / Windows, SQLite, Python 3.14 (push) Waiting to run
Tests / JavaScript tests (push) Waiting to run
Thanks Simon Charette for pair programming.

Co-authored-by: Nick Stefan <NickStefan12@gmail.com>
Co-authored-by: Akash Kumar Sen <71623442+Akash-Kumar-Sen@users.noreply.github.com>
Co-authored-by: Simon Charette <charette.s@gmail.com>
2025-10-18 15:03:50 +02:00
Segni Mekonnen
b1e0262c9f Fixed #36665 -- Improved manager usage guidance in docs/topics/db/optimization.txt.
Some checks are pending
Docs / lint-docs (push) Waiting to run
Docs / spelling (push) Waiting to run
Docs / blacken-docs (push) Waiting to run
Linters / flake8 (push) Waiting to run
Linters / isort (push) Waiting to run
Linters / black (push) Waiting to run
Tests / Windows, SQLite, Python 3.14 (push) Waiting to run
Tests / JavaScript tests (push) Waiting to run
2025-10-17 17:15:10 -04:00
Mariusz Felisiak
56977b466c Refs #35844 -- Doc'd Python 3.14 compatibility. 2025-10-17 19:25:02 +02:00
aj2s
f715bc8990
Fixed #36669 -- Doc'd that negative indexes are not supported in F() slices. 2025-10-17 10:20:23 -04:00
Jacob Walls
d980d68609 Bumped minimum isort version to 7.0.0.
Some checks are pending
Docs / spelling (push) Waiting to run
Docs / blacken-docs (push) Waiting to run
Docs / lint-docs (push) Waiting to run
Linters / flake8 (push) Waiting to run
Linters / isort (push) Waiting to run
Linters / black (push) Waiting to run
Tests / Windows, SQLite, Python 3.13 (push) Waiting to run
Tests / JavaScript tests (push) Waiting to run
Added ignores relating to https://github.com/PyCQA/isort/issues/2352.
2025-10-16 14:59:02 -04:00
Adam Johnson
6dc9b04018 Refs #28586 -- Copied fetch modes to related objects.
This change ensures that behavior and performance remain consistent when
traversing relationships.
2025-10-16 14:52:22 -04:00
Adam Johnson
e097e8a12f Fixed #28586 -- Added model field fetch modes.
May your database queries be much reduced with minimal effort.

co-authored-by: Andreas Pelme <andreas@pelme.se>
co-authored-by: Simon Charette <charette.s@gmail.com>
co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
2025-10-16 14:52:22 -04:00
Adam Johnson
f6bd90c840 Refs #28586 -- Edited related objects documentation.
This change aims to make this section clearer and ready to add a description of
fetch modes.
2025-10-16 14:52:22 -04:00
Jacob Walls
02eed4f378 Fixed #36648, Refs #33772 -- Accounted for composite pks in first()/last() when aggregating.
Some checks failed
Linters / flake8 (push) Waiting to run
Linters / isort (push) Waiting to run
Linters / black (push) Waiting to run
Tests / JavaScript tests (push) Waiting to run
Tests / Windows, SQLite, Python 3.13 (push) Waiting to run
Docs / lint-docs (push) Has been cancelled
Docs / spelling (push) Has been cancelled
Docs / blacken-docs (push) Has been cancelled
2025-10-14 15:48:29 -04:00
Jacob Walls
cc9df52666
Removed pre-release wheel-only advice in docs/internals/howto-release-django.txt.
The practice since 2.2a1 (2019) has been to upload source distributions
as well.
2025-10-14 08:46:14 -04:00
Jacob Walls
1910115807 Removed mention of setuptools in docs/internals/contributing/writing-code/unit-tests.txt. 2025-10-14 08:41:32 -04:00
lyova24
a545eb0c1a Cautioned against multi-level relative imports in coding style docs.
Some checks are pending
Docs / spelling (push) Waiting to run
Docs / blacken-docs (push) Waiting to run
Docs / lint-docs (push) Waiting to run
Linters / flake8 (push) Waiting to run
Linters / isort (push) Waiting to run
Linters / black (push) Waiting to run
Tests / Windows, SQLite, Python 3.13 (push) Waiting to run
Tests / JavaScript tests (push) Waiting to run
2025-10-13 17:27:07 -04:00
Natalia
d5543a23d3 Added notes about automatic roadmap generation for next version in docs/internals/howto-release-django.txt. 2025-10-13 17:41:30 -03:00
arsalan64
92d0c21e69 Fixed #36625 -- Mentioned exit() in tutorial's instruction to restart the shell. 2025-10-13 16:21:22 -04:00
Sarah Boyce
5b51e6f759 Fixed #36611, Refs #36580 -- Added system check for multicolumn ForeignObject in Meta.indexes/constraints/unique_together.
Some checks are pending
Docs / spelling (push) Waiting to run
Docs / blacken-docs (push) Waiting to run
Docs / lint-docs (push) Waiting to run
Linters / flake8 (push) Waiting to run
Linters / isort (push) Waiting to run
Linters / black (push) Waiting to run
Tests / Windows, SQLite, Python 3.13 (push) Waiting to run
Tests / JavaScript tests (push) Waiting to run
ForeignObjects with multiple `from_fields` are not supported in these
options.

Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2025-10-13 14:53:39 -03:00
Simon Charette
315dbe675d Fixed #36646 -- Added compatibility for oracledb 3.4.0.
Some checks failed
Linters / flake8 (push) Has been cancelled
Linters / isort (push) Has been cancelled
Linters / black (push) Has been cancelled
Docs / spelling (push) Has been cancelled
Docs / blacken-docs (push) Has been cancelled
Docs / lint-docs (push) Has been cancelled
Tests / Windows, SQLite, Python 3.13 (push) Has been cancelled
Tests / JavaScript tests (push) Has been cancelled
The Database.Binary, Date, and Timestamp attributes were changed from
aliases to bytes, datetime.date, and datetime.datetime to factory
functions in oracle/python-oracledb@869a887819
which made their usage inadequate for isinstance checks.

Thanks John Wagenleitner for the report and Natalia for the triage.

Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2025-10-11 17:15:28 +02:00
Mariusz Felisiak
1167cd1d63
Corrected admin check IDs in docs.
Some checks failed
Docs / lint-docs (push) Has been cancelled
Docs / spelling (push) Has been cancelled
Docs / blacken-docs (push) Has been cancelled
2025-10-09 20:01:31 +02:00
Natalia
608d3ebc88 Fixed #36526 -- Doc'd QuerySet.bulk_update() memory usage when batching.
Some checks failed
Docs / spelling (push) Waiting to run
Docs / blacken-docs (push) Waiting to run
Docs / lint-docs (push) Waiting to run
Linters / black (push) Has been cancelled
Linters / isort (push) Has been cancelled
Linters / flake8 (push) Has been cancelled
Tests / Windows, SQLite, Python 3.13 (push) Has been cancelled
Tests / JavaScript tests (push) Has been cancelled
Thanks Simon Charette for the review.
2025-10-08 18:27:16 -03:00