diff options
| author | jkhall81 <jason.kei.hall@gmail.com> | 2025-07-28 08:59:07 -0700 |
|---|---|---|
| committer | nessita <124304+nessita@users.noreply.github.com> | 2025-08-05 08:34:40 -0300 |
| commit | 2013092b693be0ebdf36f41dc61615a2de1bbe31 (patch) | |
| tree | 1fb5031596c477a7aa8ea87b4dd0e27b6961f918 /docs | |
| parent | e664c5afa934be5a7b57576de12620071077c4fb (diff) | |
Fixed #36530 -- Extended fields.E347 to check for ManyToManyField involving CompositePrimaryKey on either side.
Thanks to Jacob Walls for the report.
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 bb54dbdb98..51f6c282c6 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. * **fields.E348**: Related name ``<related_name>`` for ``<model>.<field name>`` clashes with the name of a model manager. 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`). |
