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

pull/10801/head
Bai 2023-06-21 10:58:14 +08:00 committed by Jiangjie.Bai
parent 7c965706d4
commit d5c51a4f0e
1 changed files with 1 additions and 1 deletions

View File

@ -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