X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/0e5e4a0d816add3c0c13559fbed4f79eb295baf8..21e60dff855cacb585e159850e2de899d4622e5d:/apps/api/handlers/text_handler.py?ds=sidebyside diff --git a/apps/api/handlers/text_handler.py b/apps/api/handlers/text_handler.py index 5e34ab4d..c4a4d0b3 100644 --- a/apps/api/handlers/text_handler.py +++ b/apps/api/handlers/text_handler.py @@ -44,7 +44,7 @@ class DocumentTextHandler(BaseHandler): user = form.cleaned_data['user'] or request.user.username format = form.cleaned_data['format'] - document = lib.document_for_rev(revision) + document = lib.document_for_revision(revision) if document.id != docid: return response.BadRequest().django_response({ @@ -71,7 +71,7 @@ class DocumentTextHandler(BaseHandler): if xchunk is None: return response.EntityNotFound().django_response({ - 'reason': 'no-part-in-document', + 'reason': 'no-chunk-in-document', 'path': chunk })