order by inverse creation date on home.
authorcavaliet
Thu, 06 Dec 2012 11:39:28 +0100
changeset 122 a26cd902ba5f
parent 121 839efd6eddf1
child 124 41c09a24bc92
order by inverse creation date on home.
src/hashcut/views.py
--- a/src/hashcut/views.py	Wed Dec 05 15:39:12 2012 +0100
+++ b/src/hashcut/views.py	Thu Dec 06 11:39:28 2012 +0100
@@ -40,7 +40,7 @@
         m1 = None
         m2 = None
         last_mashups = None
-        mashups = Mashup.objects.filter(branding=brd)[:10]
+        mashups = Mashup.objects.filter(branding=brd).order_by('-project__creation_date')[:10]
         logging.debug(repr(mashups))
         l = len(mashups)
         if l>0: