TypeError: __init__() got an unexpected keyword argument 'password'

前端 未结 1 1558
鱼传尺愫
鱼传尺愫 2021-01-24 12:41

I can\'t find out what\'s the cause of this error

TypeError: __init__() takes at most 2 arguments (3 given)

which is pointing to



        
相关标签:
1条回答
  • 2021-01-24 13:20

    You didn't call one of your validators:

    password = PasswordField('Password', validators=[DataRequired])
    

    Add ():

    password = PasswordField('Password', validators=[DataRequired()])
    
    0 讨论(0)
提交回复
热议问题