Closed TheBubblePopped closed 2 years ago
the class User has two functions as properties
@property def password(self): raise AttributeError('password is not a readable attribute') @password.setter def password(self, password): self.password_hash = generate_password_hash(password)
When i try to use User(password='something') as it's written in the tests i get an error. init() got an unexpected keyword argument 'password'
Why?
@TheBubblePopped Have you made any changes to the __init__() method in this model that produces this error?
__init__()
Actually yes, i found the bug. Ty
the class User has two functions as properties
When i try to use User(password='something') as it's written in the tests i get an error. init() got an unexpected keyword argument 'password'
Why?