diff --git a/apps/settings/models.py b/apps/settings/models.py index 6095b7afe..c8ce5cc08 100644 --- a/apps/settings/models.py +++ b/apps/settings/models.py @@ -168,6 +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) @classmethod def refresh_AUTH_RADIUS(cls):