X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/4ed56f84dedf9da88708fc2c4aef3b0b11f30825..02fae88b3ae1708a974a11e5911441ec0f70541b:/apps/api/handlers/library_handlers.py?ds=inline diff --git a/apps/api/handlers/library_handlers.py b/apps/api/handlers/library_handlers.py index f0ce1863..b2ff94b4 100644 --- a/apps/api/handlers/library_handlers.py +++ b/apps/api/handlers/library_handlers.py @@ -507,7 +507,9 @@ class MergeHandler(BaseHandler): success, changed = udoc.share(form.cleaned_data['message']) if not success: - return response.EntityConflict().django_response({}) + return response.EntityConflict().django_response({ + 'reason': 'merge-failure', + }) if not changed: return response.SuccessNoContent().django_response()