summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorShubham singh <shubham1.singh15@gmail.com>2019-12-17 02:46:39 +0530
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-12-17 09:15:01 +0100
commitf4647179ccd13c852563205273163b641d4b01a5 (patch)
tree1c1610b8909b6ad67a629ac112875521cc510243 /docs
parentff00a053478fee06bdfb4206c6d4e079e98640ff (diff)
Fixed #31086 -- Improved error message for admin model inlines with more than one foreign key to the same parent.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/checks.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/ref/checks.txt b/docs/ref/checks.txt
index 9c5b86eafd..fcbfec98cb 100644
--- a/docs/ref/checks.txt
+++ b/docs/ref/checks.txt
@@ -645,7 +645,8 @@ inline on a :class:`~django.contrib.admin.ModelAdmin`.
* **admin.E201**: Cannot exclude the field ``<field name>``, because it is the
foreign key to the parent model ``<app_label>.<model>``.
* **admin.E202**: ``<model>`` has no ``ForeignKey`` to ``<parent model>``./
- ``<model>`` has more than one ``ForeignKey`` to ``<parent model>``.
+ ``<model>`` has more than one ``ForeignKey`` to ``<parent model>``. You must
+ specify a ``fk_name`` attribute.
* **admin.E203**: The value of ``extra`` must be an integer.
* **admin.E204**: The value of ``max_num`` must be an integer.
* **admin.E205**: The value of ``min_num`` must be an integer.