mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-19 09:16:57 +00:00
fix: 修复迁移文件时触发信号记录操作日志导致迁移失败的问题
This commit is contained in:
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
Block a user