From ced9e53d62b88d6708052cce5602c0fae93fedaa Mon Sep 17 00:00:00 2001 From: Bai Date: Tue, 14 Sep 2021 00:03:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20debug=20=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/settings/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/settings/models.py b/apps/settings/models.py index 0ad7d116d..44867dc6b 100644 --- a/apps/settings/models.py +++ b/apps/settings/models.py @@ -105,13 +105,13 @@ class Setting(models.Model): # 添加 if setting.cleaned_value and not has: - logger.debug('Add auth backend: ', name) + logger.debug('Add auth backend: {}'.format(name)) settings.AUTHENTICATION_BACKENDS.insert(0, backend) # 去掉 if not setting.cleaned_value and has: index = auth_backends.index(backend) - logger.debug('Pop auth backend: ', name) + logger.debug('Pop auth backend: {}'.format(name)) auth_backends.pop(index) # 设置内存值