mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
Fixed #11560 -- Allowed proxy model multiple-inheritance from the same concrete base model.
This commit is contained in:
parent
2e0cd26ffb
commit
49f95cc0a0
5 changed files with 29 additions and 8 deletions
|
@ -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
|
||||
~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue