fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Return correct structore on revert
[redakcja.git]
/
apps
/
wiki
/
views.py
diff --git
a/apps/wiki/views.py
b/apps/wiki/views.py
index
b88d2df
..
bd9e2c5
100644
(file)
--- 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({
doc.at_revision(revision).revert(author=author, description=comment)
return JSONResponse({
- '
tex
t': doc.materialize() if before != doc.revision() else None,
+ '
documen
t': doc.materialize() if before != doc.revision() else None,
'meta': {},
'meta': {},
- '
revi
sion': doc.revision(),
+ '
ver
sion': doc.revision(),
})
else:
return JSONFormInvalid(form)
})
else:
return JSONFormInvalid(form)