diff options
| author | hui shang <shangdahao@gmail.com> | 2017-12-28 07:56:24 +0800 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-12-27 18:56:24 -0500 |
| commit | f1aa58479cdc6051dd2e97feca2d584c43aee1e7 (patch) | |
| tree | 1f59109f6c02462716ae76bb45c26548c918164b /docs | |
| parent | 1d00923848d504c6132019492b8d5a6cdf8261db (diff) | |
Fixed #28714 -- Added system checks for invalid model field names in Meta.indexes.
Thanks Gabriel for the report and Adam Johnson for the review.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/checks.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/ref/checks.txt b/docs/ref/checks.txt index 9b3f1be356..db86c49ee0 100644 --- a/docs/ref/checks.txt +++ b/docs/ref/checks.txt @@ -265,16 +265,16 @@ Models * **models.E009**: All ``index_together`` elements must be lists or tuples. * **models.E010**: ``unique_together`` must be a list or tuple. * **models.E011**: All ``unique_together`` elements must be lists or tuples. -* **models.E012**: ``index_together/unique_together`` refers to the +* **models.E012**: ``indexes/index_together/unique_together`` refers to the nonexistent field ``<field name>``. -* **models.E013**: ``index_together/unique_together`` refers to a +* **models.E013**: ``indexes/index_together/unique_together`` refers to a ``ManyToManyField`` ``<field name>``, but ``ManyToManyField``\s are not supported for that option. * **models.E014**: ``ordering`` must be a tuple or list (even if you want to order by only one field). * **models.E015**: ``ordering`` refers to the nonexistent field ``<field name>``. -* **models.E016**: ``index_together/unique_together`` refers to field +* **models.E016**: ``indexes/index_together/unique_together`` refers to field ``<field_name>`` which is not local to model ``<model>``. * **models.E017**: Proxy model ``<model>`` contains model fields. * **models.E018**: Autogenerated column name too long for field ``<field>``. |
