Projet

Général

Profil

0001-mail-fix-default-order-by-postal-date-first-14824.patch

Thomas Noël, 01 octobre 2017 17:08

Télécharger (1,48 ko)

Voir les différences:

Subject: [PATCH] mail: fix default order, by postal date first (#14824)

 welco/sources/mail/migrations/0011_mail_reference.py | 2 +-
 welco/sources/mail/models.py                         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
welco/sources/mail/migrations/0011_mail_reference.py
18 18
        ),
19 19
        migrations.AlterModelOptions(
20 20
            name='mail',
21
            options={'ordering': ['creation_timestamp', 'post_date'],
21
            options={'ordering': ['post_date', 'creation_timestamp'],
22 22
                     'verbose_name': 'Mail'},
23 23
        ),
24 24
    ]
welco/sources/mail/models.py
35 35

  
36 36
    class Meta:
37 37
        verbose_name = _('Mail')
38
        ordering = ['creation_timestamp', 'post_date']
38
        ordering = ['post_date', 'creation_timestamp']
39 39

  
40 40
    content = models.FileField(_('Content'))
41 41
    post_date = models.DateField(_('Post Date'), null=True)
42
-