Commit 110f8b69 authored by Michal Čihař's avatar Michal Čihař

Improve code

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent e1c3d48e
...@@ -42,12 +42,12 @@ def update_lock(request, project, subproject, lang): ...@@ -42,12 +42,12 @@ def update_lock(request, project, subproject, lang):
data={'status': True} data={'status': True}
) )
return JsonResponse( response = {
data={ 'status': False,
'status': False, 'message': _('Failed to update lock, probably session has expired'),
'message': _('Failed to update lock, probably session has expired'), }
},
) return JsonResponse(data=response)
@login_required @login_required
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment