X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/b9516daaa9f53a5bdbea02bd679fc9f89387d727..71e8973b1dfead567e58ec8e3e7b80a64865ba5f:/questions/views.py?ds=sidebyside 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