mirror of https://github.com/jumpserver/jumpserver
perf: 优化代码
parent
ea124fd0db
commit
0dbf035146
|
@ -168,7 +168,7 @@ class Setting(models.Model):
|
|||
# 刷新 settings
|
||||
for key, value in openid_config.items():
|
||||
setattr(settings, key, value)
|
||||
self.update_or_create(key, value, encrypted=False, category=self.category)
|
||||
self.__class__.update_or_create(key, value, encrypted=False, category=self.category)
|
||||
|
||||
@classmethod
|
||||
def refresh_AUTH_RADIUS(cls):
|
||||
|
|
Loading…
Reference in New Issue