Mongoengine: TypeError: __init__() got an unexpected keyword argument

后端 未结 4 2022
我在风中等你
我在风中等你 2020-12-19 20:43

I am using flask-mongoengine extension and I have a User class like this:

class User(db.Document, UserMixin):     
    email = db.StringField(max_length=120,         


        
4条回答
  •  执念已碎
    2020-12-19 21:25

    I don't know why but I was also keep getting the same error and only after downgrading pymongo from 3.0 to 2.8 it got fixed as David mentioned.

    Pymongo should publish a fix for that, it is frustrating and made me waste couple of hours before realizing it.

提交回复
热议问题