From: Aleksander Ɓukasz Date: Tue, 17 Dec 2013 16:10:56 +0000 (+0100) Subject: Return correct structore on revert X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/24817832933e76ec501753bb23d680995b3af7a1 Return correct structore on revert --- 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)