summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-10-13 06:08:27 -0700
committerTim Graham <timograham@gmail.com>2015-10-14 05:21:08 -0700
commitc7aff31397a7228f6ac2e33c10ebdf36c4b7a9b7 (patch)
treea034b8762c029ef9f9b42ceef248081664220673 /docs
parent92c1ae1b0b9955a511c19e07921c10126b6faa54 (diff)
Refs #25535 -- Minor edits to ForeignObject check changes.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/checks.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/ref/checks.txt b/docs/ref/checks.txt
index cc8400395a..f0cf952ffd 100644
--- a/docs/ref/checks.txt
+++ b/docs/ref/checks.txt
@@ -189,8 +189,9 @@ Related Fields
for ``<field name>``.
* **fields.E306**: Related name must be a valid Python identifier or end with
a ``'+'``.
-* **fields.E310**: None of the fields ``<field1>``, ``<field2>``, ... on model
- ``<model>`` have a ``unique=True`` constraint.
+* **fields.E310**: No subset of the fields ``<field1>``, ``<field2>``, ... on
+ model ``<model>`` is unique. Add ``unique=True`` on any of those fields or
+ 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.E320**: Field specifies ``on_delete=SET_NULL``, but cannot be null.