Commit 1237384c authored by fred's avatar fred

home: update home to only consider current focus items

parent f87543f7
......@@ -406,7 +406,7 @@ class Home(TemplateView):
def get_context_data(self, **kwargs):
context = super(Home, self).get_context_data(**kwargs)
context['sectionName'] = "Home"
context['focus'] = Focus.objects.select_related('emission', 'newsitem',
context['focus'] = Focus.objects.filter(current=True).select_related('emission', 'newsitem',
'soundfile', 'episode', 'newsitem__category').order_by('?')[:12]
context['emissions'] = Emission.objects.filter(archived=False,
creation_timestamp__gte=datetime(2013, 9, 13)).order_by('title')
......
Markdown is supported
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