aj2s
f715bc8990
Fixed #36669 -- Doc'd that negative indexes are not supported in F() slices.
2025-10-17 10:20:23 -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
Sarah Boyce
5b51e6f759
Fixed #36611 , Refs #36580 -- Added system check for multicolumn ForeignObject in Meta.indexes/constraints/unique_together.
...
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
Mariusz Felisiak
1167cd1d63
Corrected admin check IDs in docs.
2025-10-09 20:01:31 +02:00
Natalia
608d3ebc88
Fixed #36526 -- Doc'd QuerySet.bulk_update() memory usage when batching.
...
Thanks Simon Charette for the review.
2025-10-08 18:27:16 -03:00
Mariusz Felisiak
4a8ca8bd69
Added missing backticks in docs/ref/models/fields.txt.
2025-10-08 10:58:59 +02:00
Mariusz Felisiak
6e3287408e
Refs #36623 -- Confirmed support for PostGIS 3.6.
2025-10-03 17:12:57 -04:00
Mariusz Felisiak
5bd775703c
Fixed #36623 -- Dropped support for PostgreSQL 14 and PostGIS 3.1.
2025-10-03 17:12:57 -04:00
Jacob Walls
0a09c60e97
Refs #36143 , #28596 -- Avoided mentioning exact query parameter limit in bulk_create() docs.
2025-10-03 11:25:17 -04:00
arsalan64
e8190b370e
Fixed #36277 -- Fixed DatabaseFeatures.supports_virtual_generated_columns on PostgreSQL 18+.
2025-09-29 10:54:27 +02:00
John Parton
1820d35b17
Fixed #36605 -- Added support for QuerySet.in_bulk() after .values() or .values_list().
...
co-authored-by: Adam Johnson <me@adamj.eu >
co-authored-by: Simon Charette <charette.s@gmail.com >
2025-09-25 08:51:43 -04:00
Jacob Walls
efb96138b4
Refs #25508 -- Used QuerySet.__repr__ in docs/ref/contrib/postgres/search.txt.
2025-09-23 10:07:31 -04:00
David Smith
e20e189045
Refs #33783 -- Added IsEmpty GIS database function and __isempty lookup on SpatiaLite.
2025-09-22 22:04:42 -04:00
Jacob Walls
7d7e5cd055
Refs #35444 -- Removed contrib.postgres aggregates ordering kwarg per deprecation timeline.
2025-09-17 15:17:05 -03:00
Jacob Walls
00a84fc6f3
Removed versionadded/changed annotations for 5.2.
2025-09-17 15:17:05 -03:00
Jacob Walls
b931156c20
Refs #35859 -- Removed support for Task enqueuing on transaction commit.
...
This removes the ability to configure Task enqueueing via a setting,
since the proposed `ENQUEUE_ON_COMMIT` did not support multi-database
setups.
Thanks to Simon Charette for the report.
Follow-up to 4289966d1b .
2025-09-17 13:28:58 -03:00
Jake Howard
4289966d1b
Fixed #35859 -- Added background Tasks framework interface.
...
This work implements what was defined in DEP 14
(https://github.com/django/deps/blob/main/accepted/0014-background-workers.rst ).
Thanks to Raphael Gaschignard, Eric Holscher, Ran Benita, Sarah Boyce,
Jacob Walls, and Natalia Bidart for the reviews.
2025-09-16 17:28:32 -03:00
GappleBee
218f69f05e
Fixed #28041 -- Added Lexeme expression to contrib.postgres.search.
...
This expression automatically escapes its input and allows
fine-grained control over prefix matching and term weighting
via logical combinations.
Thanks Mariusz Felisiak, Adam Zapletal, Paolo Melchiorre,
Jacob Walls, Adam Johnson, and Simon Charette for reviews.
Co-authored-by: joetsoi <joetsoi@users.noreply.github.com >
Co-authored-by: Karl Hobley <karl@kaed.uk >
Co-authored-by: Alexandr Tatarinov <tatarinov1997@gmail.com >
2025-09-16 15:09:11 -04:00
blingblin-g
e08fa42fa6
Fixed #36426 -- Added support for further iterables in prefetch_related_objects().
...
Thanks Sarah Boyce for the review.
2025-09-16 14:14:23 -04:00
Simon Charette
94680437a4
Fixed #27222 -- Refreshed model field values assigned expressions on save().
...
Removed the can_return_columns_from_insert skip gates on existing
field_defaults tests to confirm the expected number of queries are
performed and that returning field overrides are respected.
2025-09-14 00:27:50 +02:00
Simon Charette
55a0073b3b
Refs #27222 -- Refreshed GeneratedFields values on save() initiated update.
...
This required implementing UPDATE RETURNING machinery that heavily
borrows from the INSERT one.
2025-09-14 00:27:49 +02:00
Jacob Walls
c48904a225
Fixed typo in docs/ref/contrib/contenttypes.txt.
2025-09-13 11:24:43 -04:00
Mridul Dhall
e183d6c26c
Fixed #36597 -- Corrected directives for functions from email module in docs.
...
Thanks Mike Edmunds for the report.
2025-09-12 18:51:52 +02:00
Salman
46fdeb1373
Fixed #36486 -- Added MongoDB to list of third-party DB backends.
2025-09-09 08:23:41 +02:00
Tim Graham
2a636118da
Fixed #36564 -- Changed DEFAULT_AUTO_FIELD from AutoField to BigAutoField.
2025-09-05 10:43:10 -04:00
Jake Howard
4e7a991c12
Refs #36588 -- Warned about using external templates in startapp/startproject commands.
...
Clarified that custom templates provided via `--template` for `starapp`
and `startproject` are used as-is, adding a warning that malicious or
poorly constructed templates may introduce security issues.
2025-09-04 13:37:54 -03:00
David Smith
0a67611b81
Fixed #36549 -- Doc'd use of OpenLayersWidget and OSMWidget with CSP.
...
OpenLayersWidget and OSMWidget load map tiles from NASA and OpenStreetMap,
respectively. When CSP is enabled, appropriate directives must be added to
allow these resources to load.
2025-09-02 16:40:05 -03:00
Clifford Gama
21603c5b50
Removed unused import in docs/ref/models/expressions.txt example.
2025-08-31 08:15:13 +02:00
Mustafa Pirbhai
183fcebf88
Fixed #35831 -- Documented the model form meta API in model form reference docs.
...
Co-authored-by: Jonathan <3218047+jernwerber@users.noreply.github.com >
Co-authored-by: Mustafa <117516335+mspirbhai@users.noreply.github.com >
2025-08-29 08:58:58 +02:00
Rob Hudson
550822bcee
Fixed #36532 -- Added Content Security Policy view decorators to override or disable policies.
...
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com >
2025-08-28 17:23:48 -03:00
Adam Johnson
56955636e6
Ensured :doc: role uses absolute targets in docs.
2025-08-28 13:48:32 -03:00
Natalia
ae03f81ffa
Replaced :doc: role usage with :ref: when appropriate in docs.
2025-08-28 13:48:32 -03:00
SaJH
3c0c54351b
Fixed #36570 -- Removed unnecessary :py domain from documentation roles.
...
Signed-off-by: SaJH <wogur981208@gmail.com >
2025-08-28 08:52:43 +02:00
David Smith
07f44c9e9a
Fixed #36568 -- Confirmed support for GEOS 3.14.
2025-08-26 16:01:41 -03:00
David Smith
f81e6e3a53
Refs #36485 -- Rewrapped docs to 79 columns line length.
...
Lines in the docs files were manually adjusted to conform to the
79 columns limit per line (plus newline), improving readability and
consistency across the content.
2025-08-25 10:51:10 -03:00
Natalia
4286a23df6
Refs #36485 -- Removed double spaces after periods in sentences.
2025-08-25 10:51:10 -03:00
David Smith
6f8e23d1c1
Refs #36485 -- Removed unnecessary parentheses in :meth: and :func: roles in docs.
2025-08-25 10:51:10 -03:00
David Smith
fb0d463b1f
Fixed #36382 -- Confirmed support for GDAL 3.11.
...
TIGER driver was removed in GDAL 3.11.
eb793be039
2025-08-21 16:46:41 +02:00
mengxun
f5c944b314
Fixed spelling of "logged-in" when used as an adjective in docs.
2025-08-19 12:43:05 -03:00
David Smith
ad4a9e0f3b
Refs #25706 -- Fixed versionadded indentation in docs/ref/contrib/gis/forms-api.txt.
2025-08-18 18:21:00 -03:00
farhan
5e06b97095
Fixed #36410 -- Added support for Template Partials to the Django Template Language.
...
Introduced `{% partialdef %}` and `{% partial %}` template tags to
define and render reusable named fragments within a template file.
Partials can also be accessed using the `template_name#partial_name`
syntax via `get_template()`, `render()`, `{% include %}`, and other
template-loading tools.
Adjusted `get_template()` behavior to support partial resolution, with
appropriate error handling for invalid names and edge cases. Introduced
`PartialTemplate` to encapsulate partial rendering behavior.
Includes tests and internal refactors to support partial context
binding, exception reporting, and tag validation.
Co-authored-by: Carlton Gibson <carlton@noumenal.es >
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com >
Co-authored-by: Nick Pope <nick@nickpope.me.uk >
2025-08-14 21:53:14 -03:00
David Sanders
fda3c1712a
Aligned format of constraint examples in docs/ref/models/constraints.txt.
2025-08-13 09:09:19 +02:00
jkhall81
2013092b69
Fixed #36530 -- Extended fields.E347 to check for ManyToManyField involving CompositePrimaryKey on either side.
...
Thanks to Jacob Walls for the report.
2025-08-05 08:34:40 -03:00
Jacob Walls
8914f4703c
Fixed #35972 -- Fixed lookup crashes after subquery annotations.
2025-08-04 10:14:01 +02:00
antoliny0919
94c2f3b993
Fixed #36055 -- Prevented overlap of object-tools buttons and page header in the admin.
2025-07-30 11:09:45 +02:00
Sarah Boyce
1ecf6889ca
Removed double spaces after periods and within phrases.
2025-07-23 10:09:43 -03:00
David Smith
1909108f9f
Fixed #36009 -- Confirmed support for PostGIS 3.5.
2025-07-23 08:17:18 -03:00
Anthony Sottile
5488530a27
Fixed #36377 -- Added hints support to CreateExtension and subclasses.
2025-07-22 08:04:55 +02:00
Ahmed Ibrahim
a5b0a618c3
Fixed #28696 -- Added GeometryType GIS database function and __geom_type lookup.
...
Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com >
2025-07-20 11:18:38 +02:00
Salvo Polizzi
a5cd84ad20
Fixed #35680 -- Added automatic imports of common utilies to shell management command.
2025-07-17 12:51:43 +02:00