summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMichal Petrucha <michal.petrucha@koniiiik.org>2016-05-22 21:10:24 +0200
committerTim Graham <timograham@gmail.com>2016-06-09 11:57:32 -0400
commit686a593aaadb1c2e2053fee8c401476dcb4617a5 (patch)
treec2a9bc3012d80b188257134bdffaf9bf2552c80d /docs
parenteffb4ed6f54bb747d26a2c1ce0ea6153ebc6d0a1 (diff)
Fixed #26648 -- Added a system check for invalid related_query_name's containing underscores.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/checks.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/ref/checks.txt b/docs/ref/checks.txt
index 18b6d88add..074a901de8 100644
--- a/docs/ref/checks.txt
+++ b/docs/ref/checks.txt
@@ -206,6 +206,10 @@ Related Fields
* **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.E308**: Reverse query name ``<related query name>`` must not end
+ with an underscore.
+* **fields.E309**: Reverse query name ``<related query name>`` must not contain
+ ``'__'``.
* **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.