I'm a little confused about how to integrate this into my project. This is a purely back-end project, so I'm not using Flask. I'm using the following:
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
class User(Base):
...
How do I integrate this into my classes? Simply trying to put it into the User class (e.g. User(Base, AllFeaturesMixin)) gives me an error of "TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases"
I'm a little confused about how to integrate this into my project. This is a purely back-end project, so I'm not using Flask. I'm using the following:
from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() class User(Base): ...
How do I integrate this into my classes? Simply trying to put it into the User class (e.g. User(Base, AllFeaturesMixin)) gives me an error of "TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases"