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