summaryrefslogtreecommitdiff
path: root/docs/ref/checks.txt
diff options
context:
space:
mode:
authorAlex Hill <alex@hill.net.au>2016-05-18 23:18:40 +0800
committerTim Graham <timograham@gmail.com>2016-05-19 21:33:36 -0400
commit2ff7ef15b0a1d41e3f121e96cb72a383863046c0 (patch)
treeaebb17708c121fc4acf3611f9d23c69ccdc3dc7c /docs/ref/checks.txt
parent0eac5535f7afd2295b1db978dffb97d79030807e (diff)
Refs #26421 -- Refactored Apps.lazy_model_operation() for better checks and tests
Diffstat (limited to 'docs/ref/checks.txt')
-rw-r--r--docs/ref/checks.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/ref/checks.txt b/docs/ref/checks.txt
index f852c777ad..e68c1a5a57 100644
--- a/docs/ref/checks.txt
+++ b/docs/ref/checks.txt
@@ -138,6 +138,9 @@ Models
* **models.E020**: The ``<model>.check()`` class method is currently overridden.
* **models.E021**: ``ordering`` and ``order_with_respect_to`` cannot be used
together.
+* **models.E022**: ``<function>`` contains a lazy reference to
+ ``<app label>>.<model>``, but app ``<app label>`` isn't installed or
+ doesn't provide model ``<model>``.
Fields
~~~~~~
@@ -200,6 +203,9 @@ Related Fields
for ``<field name>``.
* **fields.E306**: Related name must be a valid Python identifier or end with
a ``'+'``.
+* **fields.E307**: The field ``<app label>.<model>.<field name>`` was declared
+ with a lazy reference to ``<app label>.<model>``, but app ``<app label>``
+ isn't installed or doesn't provide model ``<model>``.
* **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.