We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03fdaa0 commit e303b4fCopy full SHA for e303b4f
1 file changed
apps/settings/signal_handlers.py
@@ -93,7 +93,8 @@ def keep_subscribe_settings_change():
93
def monkey_patch_settings(sender, **kwargs):
94
def monkey_patch_getattr(self, name):
95
val = getattr(self._wrapped, name)
96
- if callable(val):
+ # 只解析 defaults 中的 callable
97
+ if callable(val) and val.__module__ == 'jumpserver.conf':
98
val = val()
99
return val
100
0 commit comments