mirror of https://github.com/jumpserver/jumpserver
fix: 修复迁移文件时触发信号记录操作日志导致迁移失败的问题
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…
Reference in New Issue