mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #11560 -- Allowed proxy model multiple-inheritance from the same concrete base model.
This commit is contained in:
@@ -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
|
||||
~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Reference in New Issue
Block a user