From 5bf28ac2ed17773214bd6c7796ef356067c9fa91 Mon Sep 17 00:00:00 2001 From: Valze Date: Wed, 19 Feb 2020 23:57:16 +0200 Subject: Fixed #31185 -- Fixed detecting of unique fields in ForeignKey/ForeignObject checks when using Meta.constraints. --- docs/ref/checks.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/ref') 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 ````, ````, ... on model ```` is unique. -* **fields.E311**: ```` must set ``unique=True`` because it is +* **fields.E311**: ``.`` must be unique because it is referenced by a ``ForeignKey``. * **fields.E312**: The ``to_field`` ```` doesn't exist on the related model ``.``. -- cgit v1.3