X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/6bf8f9bc3d930eaac1ca1439d5dcee8585bf7f80..6c75a4ca1fd668180e251e55293b5aa7b9bb749d:/apps/wiki/views.py diff --git a/apps/wiki/views.py b/apps/wiki/views.py index b88d2df1..bd9e2c57 100644 --- a/apps/wiki/views.py +++ b/apps/wiki/views.py @@ -216,9 +216,9 @@ def revert(request, chunk_id): doc.at_revision(revision).revert(author=author, description=comment) return JSONResponse({ - 'text': doc.materialize() if before != doc.revision() else None, + 'document': doc.materialize() if before != doc.revision() else None, 'meta': {}, - 'revision': doc.revision(), + 'version': doc.revision(), }) else: return JSONFormInvalid(form)