From 24817832933e76ec501753bb23d680995b3af7a1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Tue, 17 Dec 2013 17:10:56 +0100 Subject: [PATCH] Return correct structore on revert --- apps/wiki/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.20.1