Fixed #22356 -- Added a check to make sure unique_together fields are local.

This commit is contained in:
Marc Egli 2014-04-14 14:41:47 -04:00 committed by Simon Charette
parent 17c1884456
commit 0bcc92c691
3 changed files with 38 additions and 0 deletions

View file

@ -44,6 +44,7 @@ Models
* **models.E013**: ``index_together/unique_together`` refers to a ManyToManyField ``<field name>``, but ManyToManyFields 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 non-existent field ``<field name>``.
* **models.E016**: ``index_together/unique_together`` refers to field ``<field_name>`` which is not local to model ``<model>``.
Fields
~~~~~~