mail: fix default order, by postal date first (#14824)

This commit is contained in:
Thomas NOËL 2017-10-01 17:04:59 +02:00
parent 2ac3859cbc
commit f10ccdfa50
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ class Migration(migrations.Migration):
),
migrations.AlterModelOptions(
name='mail',
options={'ordering': ['creation_timestamp', 'post_date'],
options={'ordering': ['post_date', 'creation_timestamp'],
'verbose_name': 'Mail'},
),
]

View File

@ -35,7 +35,7 @@ class Mail(models.Model):
class Meta:
verbose_name = _('Mail')
ordering = ['creation_timestamp', 'post_date']
ordering = ['post_date', 'creation_timestamp']
content = models.FileField(_('Content'))
post_date = models.DateField(_('Post Date'), null=True)