Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

fab model

from mongoengine import Document
from mongoengine import DateTimeField, StringField, ReferenceField, ListField

class ContactGroup(Document):
    name = StringField(max_length=60, required=True, unique=True)

    def __unicode__(self):
        return self.name

    def __repr__(self):
        return self.name
Source by flask-appbuilder.readthedocs.io #
 
PREVIOUS NEXT
Tagged: #fab #model
ADD COMMENT
Topic
Name
5+1 =