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):
data={'status': True}
)
return JsonResponse(
data={
'status': False,
'message': _('Failed to update lock, probably session has expired'),
},
)
response = {
'status': False,
'message': _('Failed to update lock, probably session has expired'),
}
return JsonResponse(data=response)
@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