mirror of
https://github.com/jumpserver/jumpserver.git
synced 2026-01-15 14:47:24 +00:00
perf: 修复事务中任务执行
This commit is contained in:
@@ -18,6 +18,7 @@ def on_transaction_commit(func):
|
||||
如果不调用on_commit, 对象创建时添加多对多字段值失败
|
||||
"""
|
||||
|
||||
@wraps(func)
|
||||
def inner(*args, **kwargs):
|
||||
transaction.on_commit(lambda: func(*args, **kwargs))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user