X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/f7bf1b53894f95a4c27d3063c70ce798f39a6d3b..307e2c65ef1caf8adae53582177912cef6f9ec51:/catalogue/templatetags/catalogue_tags.py diff --git a/catalogue/templatetags/catalogue_tags.py b/catalogue/templatetags/catalogue_tags.py index d3a25ad93..cf4abe718 100644 --- a/catalogue/templatetags/catalogue_tags.py +++ b/catalogue/templatetags/catalogue_tags.py @@ -118,7 +118,7 @@ def breadcrumbs(tags, search_form=True): @register.inclusion_tag('catalogue/_book.html') -def book(book): +def book(request, book): tags = book.tags.filter(~Q(category__in=('set', 'theme'))) tags = [u'%s' % (tag.get_absolute_url(), tag.name) for tag in tags] @@ -130,7 +130,7 @@ def book(book): if book.odt_file: formats.append(u'Plik ODT' % book.odt_file.url) - return {'book': book, 'tags': tags, 'formats': formats} + return locals() @register.tag