Skip to content

Commit

Permalink
fix: 可以清空云同步中的策略
Browse files Browse the repository at this point in the history
  • Loading branch information
O-Jiangweidong authored and BaiJiangJie committed Oct 19, 2023
1 parent db9ee71 commit 66eac76
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/audits/signal_handlers/operate_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 66eac76

Please sign in to comment.