We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
class Users(Document): username = StringField(required=True) password = StringField(required=True)
class Projects(Document): name = StringField(required=True) description = StringField() created_by = ReferenceField(Users)
Error : InvalidDocumentError("Field '%s' must be valid." % name) InvalidDocumentError: Field 'created_by' must be valid.
The text was updated successfully, but these errors were encountered:
Hmmm... have you tried required=False? It should be the default, but I'm not sure why validation is picking that up :(
Sorry, something went wrong.
No branches or pull requests
class Users(Document):
username = StringField(required=True)
password = StringField(required=True)
class Projects(Document):
name = StringField(required=True)
description = StringField()
created_by = ReferenceField(Users)
Error :
InvalidDocumentError("Field '%s' must be valid." % name)
InvalidDocumentError: Field 'created_by' must be valid.
The text was updated successfully, but these errors were encountered: