fix: 可以清空云同步中的策略

pull/11917/head
jiangweidong 2023-10-19 16:35:57 +08:00 committed by Bryan
parent db9ee71ab3
commit 66eac762ff
1 changed files with 1 additions and 0 deletions

View File

@ -39,6 +39,7 @@ def on_m2m_changed(sender, action, instance, reverse, model, pk_set, **kwargs):
log_id, before_instance = get_instance_dict_from_cache(instance_id)
field_name = str(model._meta.verbose_name)
pk_set = pk_set or {}
objs = model.objects.filter(pk__in=pk_set)
objs_display = [str(o) for o in objs]
action = M2M_ACTION[action]