diff options
| author | Sergey Fedoseev <fedoseev.sergey@gmail.com> | 2016-06-07 13:55:27 +0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-06-09 10:19:09 -0400 |
| commit | 21130ce1a9c4fcbfce4c614be9e5408b43092bf0 (patch) | |
| tree | 9e4a89131523daf9a3409aff1cc485f36da631d2 /docs | |
| parent | f6681393d3f53a67b4e0645e8d02f95579d8ae2d (diff) | |
Fixed #26718 -- Added system check for existence of the fields specified by ForeignKey.to_field.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/checks.txt | 2 |
1 files changed, 2 insertions, 0 deletions
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**: ``<model>`` must set ``unique=True`` because it is referenced by a ``ForeignKey``. +* **fields.E312**: The ``to_field`` ``<field name>`` doesn't exist on the + related model ``<app label>.<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. |
