Fixed #11560 -- Allowed proxy model multiple-inheritance from the same concrete base model.

This commit is contained in:
Akshesh 2016-03-28 00:50:54 +05:30 committed by Tim Graham
parent 2e0cd26ffb
commit 49f95cc0a0
5 changed files with 29 additions and 8 deletions

View file

@ -1230,7 +1230,13 @@ A proxy model must inherit from exactly one non-abstract model class. You
can't inherit from multiple non-abstract models as the proxy model doesn't
provide any connection between the rows in the different database tables. A
proxy model can inherit from any number of abstract model classes, providing
they do *not* define any model fields.
they do *not* define any model fields. A proxy model may also inherit from any
number of proxy models that share a common non-abstract parent class.
.. versionchanged:: 1.10
In earlier versions, a proxy model couldn't inherit more than one proxy
model that shared the same parent class.
Proxy model managers
~~~~~~~~~~~~~~~~~~~~