diff options
| author | Quentin Fulsher <qfulsher@gmail.com> | 2016-10-11 00:59:17 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-11-22 10:14:10 -0500 |
| commit | f62abfc03da61977bf080163f0a2ef014decd86a (patch) | |
| tree | e0b568cee8c2e3be45d9dcb2dc6cca2e53a36b47 /docs/ref | |
| parent | 41759c908240409d44fc11d07a562268c81f4bdf (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/ref')
| -rw-r--r-- | docs/ref/checks.txt | 4 |
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 ~~~~~~ |
