Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(0)  |  Derive(3)  |  Import(0)

src/f/l/flask-mongorest-HEAD/example/app.py   flask-mongorest(Download)
class Content(db.EmbeddedDocument):
    text = db.StringField()
    lang = db.StringField(max_length=3)
 
class ContentResource(Resource):

src/f/l/flask-admin-HEAD/examples/mongoengine/simple.py   flask-admin(Download)
class Comment(db.EmbeddedDocument):
    name = db.StringField(max_length=20, required=True)
    value = db.StringField(max_length=20)
    tag = db.ReferenceField(Tag)
 

src/f/l/flask-common-HEAD/tests/__init__.py   flask-common(Download)
        class EmbeddedDoc(db.EmbeddedDocument):
            email = LowerEmailField()
 
        class Test(db.Document):
            embedded = db.EmbeddedDocumentField(EmbeddedDoc)