from django.utils.http import urlquote_plus
from django.utils import translation
from django.utils.translation import ugettext as _
+from django.views.decorators.cache import never_cache
from ajaxable.utils import JSONResponse, AjaxableFormView
context_instance=RequestContext(request))
+@never_cache
def tagged_object_list(request, tags=''):
try:
tags = models.Tag.get_tag_list(tags)
context_instance=RequestContext(request))
+@never_cache
def book_detail(request, slug):
try:
book = models.Book.objects.get(slug=slug)
<span>
{% cache 60 tagline LANGUAGE_CODE %}
{% url book_list as b %}
- {% url book_list as r %}
+ {% url infopage 'o-projekcie' as r %}
{% count_books book_count %}
{% blocktrans count book_count as c %}
<a href='{{b}}'>{{c}}</a> free reading you have <a href='{{r}}'>right to</a>
</div>
<div class="tags">
+ {% spaceless %}
+
<span class="mono"> {% trans "Epoch" %}:</span> <span class="book-box-tag">
{% for name, slug in related.tags.epoch %}
<a href="{% tag_url 'epoch' slug %}">{{ name }}</a>
{% endfor %}
</span>
+ {% endspaceless %}
</div>
</div>
{% shelf_tags book %}