taskId must be in data
This commit is contained in:
parent
4d9761a32c
commit
bea661abcf
1 changed files with 1 additions and 1 deletions
|
@ -704,7 +704,7 @@ def updateExternalData(request, data):
|
||||||
response = json_response()
|
response = json_response()
|
||||||
if item.editable(request.user):
|
if item.editable(request.user):
|
||||||
t = tasks.update_external.delay(item.public_id)
|
t = tasks.update_external.delay(item.public_id)
|
||||||
response['taskId'] = t.task_id
|
response['data']['taskId'] = t.task_id
|
||||||
else:
|
else:
|
||||||
response = json_response(status=403, text='permission denied')
|
response = json_response(status=403, text='permission denied')
|
||||||
return render_to_json_response(response)
|
return render_to_json_response(response)
|
||||||
|
|
Loading…
Reference in a new issue