X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/92c4a21dbc8fa9ff9c8d10127b7afffed5341b23..dff3c8a8d81b98353892be322f4b050652c027f0:/apps/catalogue/views.py?ds=inline diff --git a/apps/catalogue/views.py b/apps/catalogue/views.py index f07f9abc4..bf52dc43c 100644 --- a/apps/catalogue/views.py +++ b/apps/catalogue/views.py @@ -116,6 +116,9 @@ def tagged_object_list(request, tags=''): related_tags = models.Tag.objects.related_for_model(tags, model, counts=True, extra={'where': [extra_where]}) categories = split_tags(related_tags) + if not theme_is_set: + model=models.Book.objects.filter(parent=None) + return newtagging_views.tagged_object_list( request, tag_model=models.Tag,