class Target(Document): f = fields.ObjectIdField("my_field", required=True) errors = Errors()
class Target(Document): f = fields.ObjectIdField("my_field") errors = Errors()