data optional
This commit is contained in:
parent
7d0058787a
commit
b3aa9dfd7d
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ class ApiActions(dict):
|
|||
}
|
||||
}
|
||||
'''
|
||||
data = json.loads(request.POST['data'])
|
||||
data = json.loads(request.POST.get('data', '{}'))
|
||||
docs = data.get('docs', False)
|
||||
_actions = self.keys()
|
||||
_actions.sort()
|
||||
|
|
Loading…
Reference in a new issue