summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorValze <xypzin2010@gmail.com>2020-02-19 23:57:16 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-02-27 10:53:29 +0100
commit5bf28ac2ed17773214bd6c7796ef356067c9fa91 (patch)
tree0a06a71188c3e1380c5ec561078de6cd4f53caa1 /docs
parent41ebe60728a15aa273f4d70de92f5246a89c3d4e (diff)
Fixed #31185 -- Fixed detecting of unique fields in ForeignKey/ForeignObject checks when using Meta.constraints.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/checks.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/checks.txt b/docs/ref/checks.txt
index ce5cf5b45a..57c7b56fa9 100644
--- a/docs/ref/checks.txt
+++ b/docs/ref/checks.txt
@@ -220,7 +220,7 @@ Related fields
``'__'``.
* **fields.E310**: No subset of the fields ``<field1>``, ``<field2>``, ... on
model ``<model>`` is unique.
-* **fields.E311**: ``<model>`` must set ``unique=True`` because it is
+* **fields.E311**: ``<model>.<field name>`` must be unique because it is
referenced by a ``ForeignKey``.
* **fields.E312**: The ``to_field`` ``<field name>`` doesn't exist on the
related model ``<app label>.<model>``.