data optional

This commit is contained in:
j 2011-01-14 16:21:50 +05:30
parent d0e2f8e1d4
commit ea917e00e6

View file

@ -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()