]> git.0d.be Git - panikweb.git/commitdiff
home: get 'new emissions' list ordered by creation time
authorFrédéric Péters <fpeters@0d.be>
Thu, 17 Oct 2013 14:02:25 +0000 (16:02 +0200)
committerFrédéric Péters <fpeters@0d.be>
Thu, 17 Oct 2013 14:02:25 +0000 (16:02 +0200)
panikweb/views.py

index bf7836bfc41ae43cbd10d15aa693029e1b2216f4..3c77744bee7f0cff000fd496103ce724d9907187 100644 (file)
@@ -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(