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