Commit 925726f6 authored by fred's avatar fred

home: get 'new emissions' list ordered by creation time

parent 25ba5325
......@@ -408,8 +408,7 @@ class Home(TemplateView):
context['sectionName'] = "Home"
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')
context['emissions'] = Emission.objects.filter(archived=False).order_by('-creation_timestamp')[:3]
context['newsitems'] = NewsItem.objects.order_by('-date')[:3]
context['soundfiles'] = SoundFile.objects.prefetch_related('episode__emission__categories').filter(
......
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