fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Przyspieszenie dziaĆania operatora in na vstorage.
[redakcja.git]
/
apps
/
wiki
/
views.py
diff --git
a/apps/wiki/views.py
b/apps/wiki/views.py
index
b242802
..
9a156a4
100644
(file)
--- a/
apps/wiki/views.py
+++ b/
apps/wiki/views.py
@@
-23,7
+23,7
@@
def document_detail(request, name, template_name='wiki/document_details.html'):
form = DocumentForm(request.POST, instance=document)
if form.is_valid():
document = form.save()
form = DocumentForm(request.POST, instance=document)
if form.is_valid():
document = form.save()
- return HttpResponse(json.dumps({'text': document.
text
, 'revision': document.revision()}))
+ return HttpResponse(json.dumps({'text': document.
plain_text(), 'meta': document.meta()
, 'revision': document.revision()}))
else:
return HttpResponse(json.dumps({'errors': form.errors}))
else:
else:
return HttpResponse(json.dumps({'errors': form.errors}))
else: