Commit Graph

14582 Commits

Author SHA1 Message Date
Clifford Gama
d6cca8b904 Refs #25508 -- Updated outdated QuerySet.__repr__() results. 2026-01-19 09:58:43 -05:00
Clifford Gama
2541641347 Fixed unbalanced parentheses in docs. 2026-01-19 08:39:25 -05:00
Mariusz Felisiak
6cff020787 Applied Black's 2026 stable style.
https://github.com/psf/black/releases/tag/26.1.0
2026-01-18 21:26:56 +01:00
Amar Ahmed Deina
07a1640745 Fixed #36856 -- Mentioned needsnewfeatureprocess resolution in contributor docs.
Co-authored-by: James Bligh <blighj@users.noreply.github.com>
2026-01-15 07:27:02 -05:00
Jacob Walls
a876ada18b Bumped linter versions in requirements files and tox.ini.
Follow-up to 64ac4385c7.
2026-01-14 15:07:10 -05:00
kundan223
924156072e Fixed #36855, Refs #27222 -- Mentioned multiple invocations of Field.pre_save() in 6.0 release notes.
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
2026-01-14 14:45:03 -05:00
Jacob Walls
73c5e94521 Refs #36769 -- Raised SuspiciousOperation for unexpected nested tags in XML Deserializer.
Thanks Shai Berger and Natalia Bidart for reviews.
2026-01-12 16:38:32 -05:00
Haki Benita
d61838761f Fixed #36827 -- Added support for exclusion constraints using Hash indexes on PostgreSQL. 2026-01-10 08:12:05 +01:00
Clifford Gama
1d15c732bb Refs #35381 -- Added missing deprecation note for using None as RHS of JSONExact. 2026-01-09 15:49:34 -05:00
Jacob Walls
f3b982f21f Fixed a typo in docs/ref/forms/models.txt. 2026-01-08 19:10:40 -05:00
Amar Ahmed Deina
091ffc4e5e Fixed #36844 -- Clarified need for reusable apps to set default_auto_field in packaging tutorial and AppConfig docs. 2026-01-08 10:20:38 -05:00
Tim Graham
2be860d6cf Clarified regression nature of data loss bug in docs/releases/6.0.1.txt and 5.2.10.txt. 2026-01-08 10:11:28 -05:00
Natalia
8703fbdf10 Added guidance on AI-assisted code submission to contributing docs. 2026-01-08 12:01:53 -03:00
Natalia
1717332ca2 Relocated content from docs/topics/external-packages.txt where appropriate.
Following up a forum post and a conversation with the Steering Council,
it was decided to remove the docs/topics/external-packages.txt to avoid
confusion with the Ecosystem page. Relevant content was moved to their
related sections, except for `django-contrib-comments` which is not
actively maintained.

Thank you Tim Schilling for the review.
2026-01-08 10:50:56 -03:00
Natalia
fd5def6367 Dropped unnecessary usage of "seealso" in BoundField docs. 2026-01-08 10:50:56 -03:00
Jacob Walls
b59c215eab Added stub release notes for 6.0.2. 2026-01-06 14:03:56 -05:00
Jacob Walls
e937be3c1d Added stub release notes for 5.2.11. 2026-01-06 14:02:13 -05:00
Jacob Walls
496af73bf6 Added release date for 6.0.1. 2026-01-06 13:02:16 -05:00
Jacob Walls
f6fd35fc6d Added release date for 5.2.10. 2026-01-06 13:02:01 -05:00
Jacob Walls
030c63d329 Fixed #36843, #36793 -- Reverted "Fixed #27489 -- Renamed permissions upon model renaming in migrations."
This reverts commits f02b49d2f3 and 6e89271a85.
2026-01-05 15:45:27 -05:00
Simon Charette
d6ae2ed868 Refs #33647 -- Fixed silent data truncation in bulk_create on Postgres.
Regression in a16eedcf9c.

The UNNEST strategy is affected by the same problem bulk_update has wrt/
to silent data truncation due to its usage of db_type which always returns
a parametrized subtype.
2025-12-31 10:41:55 -05:00
Johannes Maron
79ab0993d0 Fixed #36829 -- Reverted value of ClearableFileInput.use_fieldset to True.
There was unresolved discussion regarding whether to set
ClearableFileInput.use_fieldset to True or False when use_fieldset was
introduced in Django 4.1, since the clear checkbox appears only
sometimes. Although using <fieldset> is likely desirable, since the
primary motivation in #35892 was just to improve markup in the admin,
and a deprecation path was not provided for general form usage, future
work is deferred to #36828.

Regression in 4187da258f.

Thanks Tim Graham, Antoliny, and David Smith for triage.
2025-12-31 10:14:00 -05:00
Duane Hilton
626c15dba0 Fixed #30515 -- Documented resolve_url() in docs/topics/http/shortcuts.txt. 2025-12-26 12:29:06 -03:00
kundan223
7bf3ac3ee2 Fixed #36796 -- Handled lazy routes correctly in RoutePattern.match().
Coerce lazy route values to `str` at match time to support prefix and
endpoint matching when using `gettext_lazy()` route paths.

Regression in f920937c8a.

Thanks to Andrea Angelini for the report, and to Jake Howard and Jacob
Walls for reviews.

Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2025-12-26 09:24:58 -03:00
Sean Reed
165c359996 Refs #36810 -- Avoided infinite recursion in LazyNonce.__repr__().
Moved nonce generation in ``django.utils.csp.LazyNonce`` to a function
to avoid infinite recursion in ``SimpleLazyObject.__repr__`` for
unevaluated instances.

Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2025-12-24 14:46:41 -03:00
Yilei
68859a9b45 Added missing sentence period in docs/intro/tutorial02.txt. 2025-12-23 16:01:16 -03:00
Jacob Walls
1eac2659a1 Fixed #36807 -- Fixed form field alignment under <fieldset> in the admin.
It isn't safe to set display: flex on <fieldset>, because on Safari this
interferes with display: block on child divs.

Thanks Paulo Coutinho for the report and Antoliny for the review.

Regression in 4187da258f.
2025-12-22 21:04:01 -05:00
guro-Ishiguro
84bae9c22a Fixed #36818 -- Ensured SQLite connection before accessing max_query_params.
Regression in 358fd21c47.
2025-12-22 20:33:13 -05:00
Jacob Walls
0def695e3c Refs #27100 -- Removed obsolete message from tutorial and migrations topic.
The project state is cached, so when it was calculated in #27100
during the pre-migrate stage, it was no longer calculated on forward
migrations. Backward migrations still calculate it.
2025-12-22 20:24:08 -05:00
ankan0503
bddcefb00f Fixed #36305 -- Added documentation indentation guidelines to contributing docs. 2025-12-22 14:42:00 -05:00
ankan0503
cc8ee496a5 Refs #36305 -- Fixed indentation in checks and middleware documentation. 2025-12-22 14:42:00 -05:00
Clifford Gama
6ee8e9d56c Fixed #36508 -- Interpreted __iexact=None on KeyTransforms as __exact=None.
Thanks Jacob Walls for the report.
2025-12-22 14:20:07 -05:00
Skyiesac
d0d85cd165 Fixed #36376 -- Fixed --no-color for command help in Python 3.14+.
https://github.com/python/cpython/pull/136809 made `color` default to
True in ArgumentParser.
2025-12-22 14:02:21 -05:00
Nilesh Kumar Pahari
6025eab3c5 Fixed #36806 -- Added system check for null kwarg in GeneratedField.
The null argument has no effect on GeneratedField since the nullability
of the column depends on the database and expression used.
2025-12-22 09:41:41 -05:00
Jacob Walls
5a851bdbfc Refs #27380 -- Added release note for raw argument to m2m_changed signal. 2025-12-19 14:02:28 -05:00
JaeHyuck Sa
60fecd1d44 Fixed #36781 -- Added Granian to deployment documentation.
Signed-off-by: JaeHyuck Sa <wogur981208@gmail.com>
2025-12-19 10:09:30 -05:00
Jonathan Biemond
b172cbdf33 Fixed #36808 -- Required name argument in UniqueConstraint signature.
By trading ValueError for TypeError for omitted name arguments,
we gain a little clarity.
2025-12-19 09:48:15 -05:00
Mariusz Felisiak
4702b36120 Fixed #27380 -- Added "raw" argument to m2m_changed signals. 2025-12-17 18:37:18 +01:00
varunkasyap
0d8548e583 Fixed #36747 -- Parsed weeks from ISO 8601 format in parse_duration(). 2025-12-17 10:19:05 -05:00
Clifford Gama
6cc1231285 Fixed #36800 -- Restored ManyToManyField renaming in BaseDatabaseSchemaEditor.alter_field().
Regression in f9a44cc0fa.

Now that ManyToManyField is no longer concrete the decision of whether or not
it should be altered, which is also relied on by field renaming, should take
into consideration name changes even if it doesn't have a column associated
with it, as auto-created many-to-many relationship table names are a base of it.

Note that there is room for optimization here where a rename can be entirely
avoided if ManyToManyField.db_table remains stable between .name changes, just
like we do with Field.db_column remaining stable, but since this is a
regression and meant to be backported the current patch focuses on correctness
over further improvements.

Thanks Josik for the report.

Co-authored-by: Simon Charette <charette.s@gmail.com>
2025-12-16 17:45:34 -05:00
Mridul Dhall
d1a4979fa5 Fixed #36594 -- Improved UniqueConstraint's nulls_distinct system check message.
Clarified that the nulls_distinct argument is not supported, as opposed
to certain values for the argument.

Thanks Russell Owen for the report.
2025-12-16 15:06:10 -05:00
Marc Gibbons
922c4cf972 Fixed #36783 -- Ensured proper handling of multi-value QueryDicts in querystring template tag.
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2025-12-15 18:58:41 -03:00
Mariusz Felisiak
0174a85770 Fixed #36765 -- Added support for stored GeneratedFields on Oracle 23ai/26ai (23.7+).
Thanks Jacob Walls for the review.
2025-12-13 16:38:04 +01:00
Lily Acorn
e95468ed97 Refs #36735 -- Supported shift parameter for UUID7 on PostgreSQL. 2025-12-12 11:50:36 -05:00
Lily Acorn
accceec949 Fixed #36735 -- Added UUID4 and UUID7 database functions.
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2025-12-12 11:17:08 -05:00
David Sanders
8932a67725 Refs #35444 -- Clarified StringAgg deprecation notice in docs/ref/contrib/postgres/aggregates.txt. 2025-12-11 12:59:09 -05:00
Jake Howard
1651140a80 Included ASGI servers when noting what the server does. 2025-12-11 12:42:17 -05:00
Carlton Gibson
37eb890969 Noted testing uses for ContentTypeManager.clear_cache() method.
It is often necessary to reset the cache between tests, or after
preparing test state, when using content types. Django's test suite
already does this when needed, but users will need to do similar in
their own tests.
2025-12-11 12:34:43 -05:00
Pravin Kamble
2d5a780eb5 Fixed #36789 -- Added missing PDF file for docs/internals/_images/contribution_process.svg.
The PDF is needed to build the PDF version of the whole docs.
2025-12-11 13:38:49 -03:00
Jacob Walls
334308efae Fixed #36778 -- Extended advice to sanitize input before using in query expressions.
Thanks Clifford Gama and Simon Charette for reviews.
2025-12-08 10:25:24 -05:00