def METHOD_NAME(self, instance_id=None):
    """获取记录类型的orm对象"""
    if hasattr(self.kwargs.get("bundle", {}), "obj"):
        return self.kwargs["bundle"].obj
    if hasattr(self.operate_result, "obj"):
        return self.operate_result.obj
    if instance_id:
        return OPERATE_MODEL[self.record_type].objects.filter(pk=instance_id).only("project__id").first()