From: Guillaume Pellerin Date: Wed, 5 Oct 2016 11:58:55 +0000 (+0200) Subject: Re-ordering project list X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=b9ee4592a37601bbab16bd18c1ae62f7d01fdf27;p=mezzo.git Re-ordering project list --- diff --git a/app/organization/projects/models.py b/app/organization/projects/models.py index 70d3f248..1eb9e55a 100644 --- a/app/organization/projects/models.py +++ b/app/organization/projects/models.py @@ -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