X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/7a6a5aafb17e28bc9b5389f99c60865bc9c14e7c..a8045c91f2dc8ae51ca5140b54f4419a6f0c0087:/apps/wiki/views.py?ds=sidebyside 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):