Adicionar campo owners para a model Submission

parent ad3e2d77
from mongoengine import Document, fields
from eventos.core.models import EventRef
from eventos.core.models import EventRef, UserRef
class Submission(Document):
......@@ -9,4 +9,5 @@ class Submission(Document):
type = fields.StringField(max_length=255, required=True)
info = fields.StringField(max_length=255, required=True)
status = fields.BooleanField(default=False)
owners = fields.EmbeddedDocumentListField(UserRef, required=True)
event_ref = fields.EmbeddedDocumentField(EventRef, 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