mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed #22690 -- Added a check for proxy models containing fields.
Removed the FieldError raised by ModelBase.__new__ in this case.
This commit is contained in:
parent
5046c110cf
commit
ce993efda8
3 changed files with 36 additions and 10 deletions
|
@ -45,6 +45,7 @@ Models
|
|||
* **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>``.
|
||||
* **models.E017**: Proxy model ``<model>`` contains model fields.
|
||||
|
||||
Fields
|
||||
~~~~~~
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue