maxcountryman / flask-login

Flask user session management.
https://flask-login.readthedocs.io/
MIT License
3.58k stars 804 forks source link

Unable to use User class it is diplaying metaclass confilct error #477

Closed pavankalyannv closed 2 years ago

pavankalyannv commented 4 years ago

class User( UserMixin,db.Document): TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases

Screenshot from 2020-03-04 20-07-34

davidism commented 2 years ago

UserMixin doesn't use a metaclass, so this seems like an issue with db.Document.