📜  fab 模型 - Html 代码示例

📅  最后修改于: 2022-03-11 14:53:00.742000             🧑  作者: Mango

代码示例1
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