X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/7a6a5aafb17e28bc9b5389f99c60865bc9c14e7c..c446cd5aed63e0ea7ee52c05bf3d0ca8951969b2:/apps/wiki/views.py diff --git a/apps/wiki/views.py b/apps/wiki/views.py index 4348cb85..7d60341c 100644 --- a/apps/wiki/views.py +++ b/apps/wiki/views.py @@ -321,6 +321,17 @@ def diff(request, name): docB.plain_text.splitlines(), context=3)) +@never_cache +@normalized_name +def revision(request, name): + storage = getstorage() + + try: + return http.HttpResponse(str(storage.doc_meta(name)['revision'])) + except DocumentNotFound: + raise http.Http404 + + @never_cache @normalized_name def history(request, name):