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

@ -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.