mirror of https://github.com/jumpserver/jumpserver
perf: 修复 settings patch 问题
parent
03fdaa03e4
commit
e303b4f571
|
@ -93,7 +93,8 @@ def subscribe_settings_change(sender, **kwargs):
|
|||
def monkey_patch_settings(sender, **kwargs):
|
||||
def monkey_patch_getattr(self, name):
|
||||
val = getattr(self._wrapped, name)
|
||||
if callable(val):
|
||||
# 只解析 defaults 中的 callable
|
||||
if callable(val) and val.__module__ == 'jumpserver.conf':
|
||||
val = val()
|
||||
return val
|
||||
|
||||
|
|
Loading…
Reference in New Issue