From 6aa28c35d2d68f512ba2ae2fdde2c5e5b5d8e808 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20St=C4=99pniowski?= Date: Tue, 16 Sep 2008 23:48:53 +0200 Subject: [PATCH] Showing only in books with no parents in tagged_object_list. --- apps/catalogue/views.py | 3 +++ 1 file changed, 3 insertions(+) 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, -- 2.20.1