mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #22356 -- Added a check to make sure unique_together fields are local.
This commit is contained in:
parent
17c1884456
commit
0bcc92c691
3 changed files with 38 additions and 0 deletions
|
@ -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
|
||||
~~~~~~
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue