📅  最后修改于: 2022-03-11 14:53:00.742000             🧑  作者: Mango
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