]> git.parisson.com Git - mezzo.git/commitdiff
Re-ordering project list
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 5 Oct 2016 11:58:55 +0000 (13:58 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 5 Oct 2016 11:58:55 +0000 (13:58 +0200)
app/organization/projects/models.py

index 70d3f248b01ce22e49f8e04064ef7c798b870b64..1eb9e55a7cdccb1cd361bb5682c2384db7df2c29 100644 (file)
@@ -30,7 +30,7 @@ class Project(Displayable, Period, RichText):
 
     class Meta:
         verbose_name = _('project')
-        ordering = ['title',]
+        ordering = ['-date_from', '-date_to']
 
     def __str__(self):
         return self.title