I use two django packages - django-mptt (utilities for implementing Modified Preorder Tree Traversal) and django-hvad (model translation).
I have a model class MenuItem and I want to it extends TranslatableModel and MPTTModel, like this:
class MenuItem(TranslatableModel, MPTTModel):
but it causes metaclass conflict:
(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)
What is the solution this problem? I hope that I can use double inheritance.