* [Bugfix] 修复错误

* [Bugfix] 修复一些bug
This commit is contained in:
老广
2018-12-17 11:44:43 +08:00
committed by GitHub
parent 374039d287
commit 985bd6fc82
6 changed files with 22 additions and 15 deletions

View File

@@ -45,6 +45,8 @@ class Setting(models.Model):
def cleaned_value(self):
try:
value = self.value
if not isinstance(value, (str, bytes)):
return value
if self.encrypted:
value = signer.unsign(value)
value = json.loads(value)