diff options
| author | jkhall81 <jason.kei.hall@gmail.com> | 2025-07-28 08:59:07 -0700 |
|---|---|---|
| committer | Natalia <124304+nessita@users.noreply.github.com> | 2025-08-05 08:46:56 -0300 |
| commit | bdc3f9e3508fc144c5e9710f5b672cc41f6e742d (patch) | |
| tree | f42ec688c25eff8c0ae30632131da063665a0386 /docs | |
| parent | f01ceae477a71a1c244c332e1b53a9499e484874 (diff) | |
[5.2.x] Fixed #36530 -- Extended fields.E347 to check for ManyToManyField involving CompositePrimaryKey on either side.
Thanks to Jacob Walls for the report.
Backport of 2013092b693be0ebdf36f41dc61615a2de1bbe31 from main.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/checks.txt | 4 | ||||
| -rw-r--r-- | docs/releases/5.2.5.txt | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/docs/ref/checks.txt b/docs/ref/checks.txt index 6f7b7d271e..fd0983dfad 100644 --- a/docs/ref/checks.txt +++ b/docs/ref/checks.txt @@ -338,8 +338,8 @@ Related fields * **fields.W345**: ``related_name`` has no effect on ``ManyToManyField`` with a symmetrical relationship, e.g. to "self". * **fields.W346**: ``db_comment`` has no effect on ``ManyToManyField``. -* **fields.E347**: Field defines a relation to the ``CompositePrimaryKey`` of - model ``<model>`` which is not supported. +* **fields.E347**: Field defines a relation involving model ``<model>`` which + has a ``CompositePrimaryKey`` and such relations are not supported. Models ------ diff --git a/docs/releases/5.2.5.txt b/docs/releases/5.2.5.txt index 6791983aad..f782ea9632 100644 --- a/docs/releases/5.2.5.txt +++ b/docs/releases/5.2.5.txt @@ -21,3 +21,7 @@ Bugfixes (:ticket:`36518`). * Added compatibility for ``docutils`` 0.22 (:ticket:`36535`). + +* Fixed a crash in Django 5.2 when using a ``ManyToManyField`` on a model with + a composite primary key, by extending the ``fields.E347`` system check + (:ticket:`36530`). |
