mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #36530 -- Extended fields.E347 to check for ManyToManyField involving CompositePrimaryKey on either side.
Thanks to Jacob Walls for the report.
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user