]> git.0d.be Git - panikweb-esperanzah.git/blobdiff - panikweb_esperanzah/views.py
display emissions by creation time order on home
[panikweb-esperanzah.git] / panikweb_esperanzah / views.py
index 3cec4d5aab448a78ef555c7fc458114dd5873505..21144ac6a8fb9ca606932bda63647fa26035f103 100644 (file)
@@ -14,7 +14,7 @@ import panikweb.views
 class Home(panikweb.views.Home):
     def get_context_data(self, **kwargs):
         context = super().get_context_data(**kwargs)
-        context['emissions'] = list(Emission.objects.filter(archived=False).order_by('title'))
+        context['emissions'] = list(Emission.objects.filter(archived=False).order_by('creation_timestamp'))
         # force detour-vers-le-futur to go first
         detour = [x for x in context['emissions'] if x.slug == 'detour-vers-le-futur']
         context['emissions'] = detour + [x for x in context['emissions'] if x.slug != 'detour-vers-le-futur']