mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Fixed #29408 -- Added validation of related fields and lookups in model Meta.ordering.
This commit is contained in:
parent
4dcbe6eb2d
commit
440505cb2c
4 changed files with 125 additions and 6 deletions
|
@ -277,8 +277,8 @@ Models
|
|||
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.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.E017**: Proxy model ``<model>`` contains model fields.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue