Adicionar model Submission

parent 72e89637
# Documents
# EmbeddedDocuments
from eventos.core.models.embedded import EventSubmission, Owner
from eventos.core.models.event import Event
from eventos.core.models.submission import Submission
from eventos.core.models.user import User
from mongoengine import Document, fields
class Submission(Document):
title = fields.StringField(max_length=255, required=True)
type = fields.StringField(max_length=255, required=True)
info = fields.StringField(max_length=255, required=True)
status = fields.BooleanField(default=False)
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