From 0dbf0351466342bff3716105f7c2294c6469aca9 Mon Sep 17 00:00:00 2001 From: halo Date: Mon, 21 Feb 2022 16:47:14 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/settings/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/settings/models.py b/apps/settings/models.py index c8ce5cc08..179ceba06 100644 --- a/apps/settings/models.py +++ b/apps/settings/models.py @@ -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):