fix: 修复迁移文件时触发信号记录操作日志导致迁移失败的问题

pull/10800/head
Bai 1 year ago committed by Jiangjie.Bai
parent a2bbf11f9d
commit b9c1a89f51

@ -42,7 +42,7 @@ def _get_instance_field_value(
if getattr(f, 'attname', None) in model_need_continue_fields:
continue
value = getattr(instance, f.name) or getattr(instance, f.attname)
value = getattr(instance, f.name, None) or getattr(instance, f.attname, None)
if not isinstance(value, bool) and not value:
continue

Loading…
Cancel
Save