Natalia
608d3ebc88
Fixed #36526 -- Doc'd QuerySet.bulk_update() memory usage when batching.
...
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
Mariusz Felisiak
4a8ca8bd69
Added missing backticks in docs/ref/models/fields.txt.
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-08 10:58:59 +02:00
Mariusz Felisiak
6e3287408e
Refs #36623 -- Confirmed support for PostGIS 3.6.
Linters / flake8 (push) Has been cancelled
Linters / isort (push) Has been cancelled
Linters / black (push) Has been cancelled
Tests / Windows, SQLite, Python 3.13 (push) Has been cancelled
Tests / JavaScript tests (push) Has been cancelled
Docs / spelling (push) Has been cancelled
Docs / blacken-docs (push) Has been cancelled
Docs / lint-docs (push) Has been cancelled
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.
Docs / blacken-docs (push) Waiting to run
Docs / spelling (push) Waiting to run
Tests / JavaScript tests (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
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.
...
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
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().
...
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
Docs / spelling (push) Has been cancelled
Docs / blacken-docs (push) Has been cancelled
Docs / lint-docs (push) Has been cancelled
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.
Docs / blacken-docs (push) Waiting to run
Docs / lint-docs (push) Waiting to run
Docs / spelling (push) Waiting to run
2025-09-13 11:24:43 -04:00
Mridul Dhall
e183d6c26c
Fixed #36597 -- Corrected directives for functions from email module in docs.
...
Docs / spelling (push) Waiting to run
Docs / blacken-docs (push) Waiting to run
Docs / lint-docs (push) Waiting to run
Linters / flake8 (push) Has been cancelled
Linters / isort (push) Has been cancelled
Linters / black (push) Has been cancelled
Tests / Windows, SQLite, Python 3.13 (push) Has been cancelled
Tests / JavaScript tests (push) Has been cancelled
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.
Docs / lint-docs (push) Has been cancelled
Docs / spelling (push) Has been cancelled
Docs / blacken-docs (push) Has been cancelled
2025-09-09 08:23:41 +02:00
Tim Graham
2a636118da
Fixed #36564 -- Changed DEFAULT_AUTO_FIELD from AutoField to BigAutoField.
Docs / spelling (push) Waiting to run
Docs / blacken-docs (push) Waiting to run
Docs / lint-docs (push) Waiting to run
Linters / flake8 (push) Has been cancelled
Linters / isort (push) Has been cancelled
Linters / black (push) Has been cancelled
Tests / Windows, SQLite, Python 3.13 (push) Has been cancelled
Tests / JavaScript tests (push) Has been cancelled
2025-09-05 10:43:10 -04:00
Jake Howard
4e7a991c12
Refs #36588 -- Warned about using external templates in startapp/startproject commands.
...
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
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.
...
Docs / spelling (push) Waiting to run
Docs / blacken-docs (push) Waiting to run
Docs / lint-docs (push) Waiting to run
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.
...
Docs / spelling (push) Waiting to run
Docs / blacken-docs (push) Waiting to run
Docs / lint-docs (push) Waiting to run
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.
...
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
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.
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
Docs / spelling (push) Waiting to run
Docs / blacken-docs (push) Waiting to run
2025-08-19 12:43:05 -03:00
David Smith
ad4a9e0f3b
Refs #25706 -- Fixed versionadded indentation in docs/ref/contrib/gis/forms-api.txt.
Docs / spelling (push) Waiting to run
Docs / blacken-docs (push) Waiting to run
2025-08-18 18:21:00 -03:00
farhan
5e06b97095
Fixed #36410 -- Added support for Template Partials to the Django Template Language.
...
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
Docs / spelling (push) Has been cancelled
Docs / blacken-docs (push) Has been cancelled
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.
Docs / spelling (push) Has been cancelled
Docs / blacken-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.13 (push) Has been cancelled
Tests / JavaScript tests (push) Has been cancelled
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.
Docs / docs (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.13 (push) Waiting to run
Tests / JavaScript tests (push) Waiting to run
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.
Docs / docs (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.13 (push) Waiting to run
Tests / JavaScript tests (push) Waiting to run
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
Clifford Gama
ac2d907f45
Fixed typo in docs/ref/utils.txt.
Linters / black (push) Has been cancelled
Linters / flake8 (push) Has been cancelled
Linters / isort (push) Has been cancelled
Docs / docs (push) Has been cancelled
Docs / blacken-docs (push) Has been cancelled
Tests / Windows, SQLite, Python 3.13 (push) Has been cancelled
Tests / JavaScript tests (push) Has been cancelled
2025-07-13 19:38:23 +02:00
Rob Hudson
d63241ebc7
Fixed #15727 -- Added Content Security Policy (CSP) support.
...
This initial work adds a pair of settings to configure specific CSP
directives for enforcing or reporting policy violations, a new
`django.middleware.csp.ContentSecurityPolicyMiddleware` to apply the
appropriate headers to responses, and a context processor to support CSP
nonces in templates for safely inlining assets.
Relevant documentation has been added for the 6.0 release notes,
security overview, a new how-to page, and a dedicated reference section.
Thanks to the multiple reviewers for their precise and valuable feedback.
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2025-06-27 15:57:02 -03:00
Mariusz Felisiak
7091801e04
Fixed #36471 -- Added support for __coveredby GIS lookup and Collect, GeoHash, IsValid on MariaDB 12.0.1+.
Docs / docs (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.13 (push) Waiting to run
Tests / JavaScript tests (push) Waiting to run
2025-06-25 08:58:22 +02:00
Clifford Gama
74b31cd26b
Fixed #32770 -- Added system check to ensure django.contrib.postgres is installed when using its features.
...
Added postgres.E005 to validate 'django.contrib.postgres' is in INSTALLED_APPS
when using:
* PostgreSQL-specific fields (ArrayField, HStoreField, range fields, SearchVectorField),
* PostgreSQL indexes (PostgresIndex and all subclasses), and
* ExclusionConstraint
The check provides immediate feedback during system checks rather than failing
later with obscure runtime and database errors.
Thanks to Simon Charette and Sarah Boyce for reviews.
2025-06-18 08:36:49 +02:00