mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #31410 -- Added system checks for invalid model field names in UniqueConstraint.
This commit is contained in:
committed by
Mariusz Felisiak
parent
8328811f04
commit
3c7bf39e23
@@ -308,17 +308,17 @@ 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**: ``indexes/index_together/unique_together`` refers to the
|
||||
nonexistent field ``<field name>``.
|
||||
* **models.E013**: ``indexes/index_together/unique_together`` refers to a
|
||||
``ManyToManyField`` ``<field name>``, but ``ManyToManyField``\s are not
|
||||
supported for that option.
|
||||
* **models.E012**: ``constraints/indexes/index_together/unique_together``
|
||||
refers to the nonexistent field ``<field name>``.
|
||||
* **models.E013**: ``constraints/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, related field,
|
||||
or lookup ``<field name>``.
|
||||
* **models.E016**: ``indexes/index_together/unique_together`` refers to field
|
||||
``<field_name>`` which is not local to model ``<model>``.
|
||||
* **models.E016**: ``constraints/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>``.
|
||||
Maximum length is ``<maximum length>`` for database ``<alias>``.
|
||||
|
||||
Reference in New Issue
Block a user