引用:原文
from mongoengine import * class Employee(Document): name = StringField() boss = ReferenceField("self", reverse_delete_rule = NULLIFY)
如何在mongoengine中使用referencefield引用本类
原文:https://www.cnblogs.com/daryl-blog/p/11369573.html