From 21130ce1a9c4fcbfce4c614be9e5408b43092bf0 Mon Sep 17 00:00:00 2001 From: Sergey Fedoseev Date: Tue, 7 Jun 2016 13:55:27 +0500 Subject: Fixed #26718 -- Added system check for existence of the fields specified by ForeignKey.to_field. --- docs/ref/checks.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'docs') diff --git a/docs/ref/checks.txt b/docs/ref/checks.txt index ac96fbf412..18b6d88add 100644 --- a/docs/ref/checks.txt +++ b/docs/ref/checks.txt @@ -211,6 +211,8 @@ Related Fields add at least a subset of them to a unique_together constraint. * **fields.E311**: ```` must set ``unique=True`` because it is referenced by a ``ForeignKey``. +* **fields.E312**: The ``to_field`` ```` doesn't exist on the + related model ``.``. * **fields.E320**: Field specifies ``on_delete=SET_NULL``, but cannot be null. * **fields.E321**: The field specifies ``on_delete=SET_DEFAULT``, but has no default value. -- cgit v1.3