1
0
mirror of https://github.com/django/django.git synced 2025-10-30 09:06:13 +00:00

[1.7.x] Fixed #22690 -- Added a check for proxy models containing fields.

Removed the FieldError raised by ModelBase.__new__ in this case.

Backport of ce993efda8 from master
This commit is contained in:
Craig de Stigter
2014-05-29 10:26:57 +12:00
committed by Tim Graham
parent 160fd6c7c1
commit 724e600872
3 changed files with 36 additions and 10 deletions

View File

@@ -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.E017**: Proxy model ``<model>`` contains model fields.
Fields
~~~~~~