perf: 优化代码

pull/7660/head
halo 2022-02-21 16:47:14 +08:00 committed by Jiangjie.Bai
parent ea124fd0db
commit 0dbf035146
1 changed files with 1 additions and 1 deletions

View File

@ -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):