X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/7a6a5aafb17e28bc9b5389f99c60865bc9c14e7c..22562ad88cc1bfc34e22ff02dec66fb2e975e7ac:/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):