fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Club prepared.
[wolnelektury.git]
/
src
/
catalogue
/
views.py
diff --git
a/src/catalogue/views.py
b/src/catalogue/views.py
index
2ea5eb0
..
6299cd1
100644
(file)
--- 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.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
from ajaxable.utils import AjaxableFormView
from club.models import Membership
@@
-354,6
+355,7
@@
def tag_info(request, tag_id):
return HttpResponse(tag.description)
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:
def embargo_link(request, format_, slug):
book = get_object_or_404(Book, slug=slug)
if format_ not in Book.formats: