Answers for "fab model"

0

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
Posted by: Guest on September-04-2021

Browse Popular Code Answers by Language