mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-05 09:21:02 +00:00
perf(assets): 优化节点树
修改树策略,做读优化,写的速度降低
This commit is contained in:
14
apps/common/const/signals.py
Normal file
14
apps/common/const/signals.py
Normal file
@@ -0,0 +1,14 @@
|
||||
"""
|
||||
`m2m_changed`
|
||||
|
||||
```
|
||||
def m2m_signals_handler(action, instance, reverse, model, pk_set, using):
|
||||
pass
|
||||
```
|
||||
"""
|
||||
PRE_ADD = 'pre_add'
|
||||
POST_ADD = 'post_add'
|
||||
PRE_REMOVE = 'pre_remove'
|
||||
POST_REMOVE = 'post_remove'
|
||||
PRE_CLEAR = 'pre_clear'
|
||||
POST_CLEAR = 'post_clear'
|
Reference in New Issue
Block a user