私は 2 つの django パッケージを使用しています - django-mptt (Modified Preorder Tree Traversal を実装するためのユーティリティ) と django-hvad (モデル変換)。
モデル クラスMenuItemがあり、次のように TranslatableModel と MPTTModel を拡張したいと考えています。
class MenuItem(TranslatableModel, MPTTModel):
しかし、メタクラスの競合が発生します:
(TypeError: Error when calling the metaclass bases
metaclass conflict: the metaclass of a derived class
must be a (non-strict) subclass of the metaclasses of all its bases)
この問題の解決策は何ですか? 二重継承が使えるようになることを願っています。