Modificar campo id, required=False, para usuários não cadaastrados no sistema

parent c13a6dc6
......@@ -5,7 +5,7 @@ from eventos.core.models import User
class UserRef(EmbeddedDocument):
id = fields.ReferenceField(User, required=True)
id = fields.ReferenceField(User, required=False)
first_name = fields.StringField(max_length=255, required=True)
last_name = fields.StringField(max_length=255, required=True)
email = fields.EmailField(max_length=255, required=True)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment