X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/b9516daaa9f53a5bdbea02bd679fc9f89387d727..7f108d550f1cfaa3bd8422a038e5f0f7ce28c988:/questions/views.py diff --git a/questions/views.py b/questions/views.py index 076a2e0..f35f5fe 100644 --- a/questions/views.py +++ b/questions/views.py @@ -65,5 +65,6 @@ class QuestionListView(ListView): category_click_count = uncategorized_tags_click_count tag.cloud_size = get_cloud_size(tag.click_count, category_click_count) context['tag_lists'].setdefault(tag.category.id if tag.category else 0, []).append(tag) + context['has_uncategorized_tags'] = 0 in context['tag_lists'] return context