mirror of
https://github.com/django/django.git
synced 2025-07-24 13:44:32 +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
|
@ -110,10 +110,20 @@ class UserProxy(User):
|
|||
proxy = True
|
||||
|
||||
|
||||
class AnotherUserProxy(User):
|
||||
class Meta:
|
||||
proxy = True
|
||||
|
||||
|
||||
class UserProxyProxy(UserProxy):
|
||||
class Meta:
|
||||
proxy = True
|
||||
|
||||
|
||||
class MultiUserProxy(UserProxy, AnotherUserProxy):
|
||||
class Meta:
|
||||
proxy = True
|
||||
|
||||
# We can still use `select_related()` to include related models in our querysets.
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue