Commit f9f23dbe authored by fred's avatar fred
Browse files

only display current focus items on homepage

parent 03e571cc
......@@ -21,7 +21,7 @@ class Home(TemplateView):
context['emissions'] = self.request.user.emissions.all().order_by('title')
context['news_categories'] = self.request.user.news_categories.all().order_by('title')
if self.request.user.has_perm('emissions.add_focus'):
context['focused_items'] = Focus.objects.select_related()
context['focused_items'] = Focus.objects.select_related().filter(current=True)
return context
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment