summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorQuentin Fulsher <qfulsher@gmail.com>2016-10-11 00:59:17 -0700
committerTim Graham <timograham@gmail.com>2016-11-22 10:14:10 -0500
commitf62abfc03da61977bf080163f0a2ef014decd86a (patch)
treee0b568cee8c2e3be45d9dcb2dc6cca2e53a36b47 /docs
parent41759c908240409d44fc11d07a562268c81f4bdf (diff)
Fixed #27295 -- Added a system check to prohibit model names that start or end with an underscore or contain double 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 638f9af564..a3c659aad5 100644
--- a/docs/ref/checks.txt
+++ b/docs/ref/checks.txt
@@ -141,6 +141,10 @@ Models
* **models.E022**: ``<function>`` contains a lazy reference to
``<app label>.<model>``, but app ``<app label>`` isn't installed or
doesn't provide model ``<model>``.
+* **models.E023**: The model name ``<model>`` cannot start or end with an
+ underscore as it collides with the query lookup syntax.
+* **models.E024**: The model name ``<model>`` cannot contain double underscores
+ as it collides with the query lookup syntax.
Fields
~~~~~~