2012-04-10 06:41:20 +08:00
|
|
|
|
|
|
|
from django.db import models
|
|
|
|
|
|
|
|
|
|
|
|
class ConcreteModel(models.Model):
|
|
|
|
pass
|
|
|
|
|
2013-11-03 05:34:05 +08:00
|
|
|
|
2015-10-06 01:26:14 +08:00
|
|
|
class ProxyModel(ConcreteModel):
|
|
|
|
class Meta:
|
|
|
|
proxy = True
|
|
|
|
|
|
|
|
|
|
|
|
class ConcreteModelSubclass(ProxyModel):
|
2012-04-10 06:41:20 +08:00
|
|
|
pass
|
|
|
|
|
2013-11-03 05:34:05 +08:00
|
|
|
|
2012-04-10 06:41:20 +08:00
|
|
|
class ConcreteModelSubclassProxy(ConcreteModelSubclass):
|
|
|
|
class Meta:
|
|
|
|
proxy = True
|