[Bugfix] 修复adhoc 日志查看的bug, 修改config example (#2230)

This commit is contained in:
老广
2018-12-20 11:42:00 +08:00
committed by GitHub
parent a1b80f5f0b
commit 08945f0a19
7 changed files with 111 additions and 54 deletions

View File

@@ -168,7 +168,10 @@ class AdHoc(models.Model):
@property
def tasks(self):
return json.loads(self._tasks)
try:
return json.loads(self._tasks)
except:
return []
@tasks.setter
def tasks(self, item):