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:
Craig de Stigter 2014-05-29 10:26:57 +12:00 committed by Tim Graham
parent 5046c110cf
commit ce993efda8
3 changed files with 36 additions and 10 deletions

View file

@ -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
~~~~~~