1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

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.