X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/3fceb197b7f492cf5cfcb4034b6e045638f128d4..f177dd0cdb753827bd208960a159d1bbbaae9e80:/src/catalogue/views.py?ds=sidebyside diff --git a/src/catalogue/views.py b/src/catalogue/views.py index 2ea5eb019..6299cd19d 100644 --- a/src/catalogue/views.py +++ b/src/catalogue/views.py @@ -15,6 +15,7 @@ from django.contrib.auth.decorators import login_required, user_passes_test from django.utils.http import urlquote_plus from django.utils import translation from django.utils.translation import ugettext as _, ugettext_lazy +from django.views.decorators.cache import never_cache from ajaxable.utils import AjaxableFormView from club.models import Membership @@ -354,6 +355,7 @@ def tag_info(request, tag_id): return HttpResponse(tag.description) +@never_cache def embargo_link(request, format_, slug): book = get_object_or_404(Book, slug=slug) if format_ not in Book.formats: