0001-mail-fix-default-order-by-postal-date-first-14824.patch
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 |
- |