0001-mail-add-default-order-by-postal-or-creation-date-14.patch
welco/sources/mail/migrations/0011_mail_reference.py | ||
---|---|---|
16 | 16 |
name='reference', |
17 | 17 |
field=models.CharField(max_length=30, null=True, verbose_name='Reference'), |
18 | 18 |
), |
19 |
migrations.AlterModelOptions( |
|
20 |
name='mail', |
|
21 |
options={'ordering': ['creation_timestamp', 'post_date'], |
|
22 |
'verbose_name': 'Mail'}, |
|
23 |
), |
|
19 | 24 |
] |
welco/sources/mail/models.py | ||
---|---|---|
35 | 35 | |
36 | 36 |
class Meta: |
37 | 37 |
verbose_name = _('Mail') |
38 |
ordering = ['creation_timestamp', 'post_date'] |
|
38 | 39 | |
39 | 40 |
content = models.FileField(_('Content')) |
40 | 41 |
post_date = models.DateField(_('Post Date'), null=True) |
41 |
- |