X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/b5d3bba7d1d4ff3efeade1ca9433765fc49a495b..fb20b55d2769c454ab880eaa7df053aa491193bf:/apps/catalogue/templatetags/catalogue_tags.py diff --git a/apps/catalogue/templatetags/catalogue_tags.py b/apps/catalogue/templatetags/catalogue_tags.py index e2aac35c7..14ed64da8 100644 --- a/apps/catalogue/templatetags/catalogue_tags.py +++ b/apps/catalogue/templatetags/catalogue_tags.py @@ -148,6 +148,17 @@ def book_tree(book_list, books_by_parent): else: return '' +@register.simple_tag +def audiobook_tree(book_list, books_by_parent): + text = "".join("