We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21e4df1 commit fb70133Copy full SHA for fb70133
README.md
@@ -52,14 +52,22 @@ class Author(MasterMixin, models.Model):
52
CQRS_SERIALIZER = 'app.api.AuthorSerializer'
53
54
55
-# For cases of Diamond Multiinheritance the following approach could be used:
+# For cases of Diamond Multi-inheritance or in case of Proxy Django-models the following approach could be used:
56
from mptt.models import MPTTModel
57
from dj_cqrs.metas import MasterMeta
58
59
class ComplexInheritanceModel(MPTTModel, RawMasterMixin):
60
pass
61
62
+class BaseModel(RawMasterMixin):
63
+ pass
64
+
65
+class ProxyModel(BaseModel):
66
+ class Meta:
67
+ proxy = True
68
69
MasterMeta.register(ComplexInheritanceModel)
70
+MasterMeta.register(BaseModel)
71
```
72
73
```python
0 commit comments