From f1aa58479cdc6051dd2e97feca2d584c43aee1e7 Mon Sep 17 00:00:00 2001 From: hui shang Date: Thu, 28 Dec 2017 07:56:24 +0800 Subject: Fixed #28714 -- Added system checks for invalid model field names in Meta.indexes. Thanks Gabriel for the report and Adam Johnson for the review. --- docs/ref/checks.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/ref') 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 ````. -* **models.E013**: ``index_together/unique_together`` refers to a +* **models.E013**: ``indexes/index_together/unique_together`` refers to a ``ManyToManyField`` ````, 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 ````. -* **models.E016**: ``index_together/unique_together`` refers to field +* **models.E016**: ``indexes/index_together/unique_together`` refers to field ```` which is not local to model ````. * **models.E017**: Proxy model ```` contains model fields. * **models.E018**: Autogenerated column name too long for field ````. -- cgit v1.3