X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/7e113c61d336d677b96ff0ed55a5f81eb2b80d53..65c9feda79d2b2c94cb7dcd561318a83fd796f0a:/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: