Projet

Général

Profil

0001-mail-add-default-order-by-postal-or-creation-date-14.patch

Thomas Noël, 15 février 2017 15:57

Télécharger (1,59 ko)

Voir les différences:

Subject: [PATCH] mail: add default order, by postal or creation date (#14824)

 .../sources/mail/migrations/0012_auto_20170215_1554.py | 18 ++++++++++++++++++
 welco/sources/mail/models.py                           |  1 +
 2 files changed, 19 insertions(+)
 create mode 100644 welco/sources/mail/migrations/0012_auto_20170215_1554.py
welco/sources/mail/migrations/0012_auto_20170215_1554.py
1
# -*- coding: utf-8 -*-
2
from __future__ import unicode_literals
3

  
4
from django.db import migrations, models
5

  
6

  
7
class Migration(migrations.Migration):
8

  
9
    dependencies = [
10
        ('mail', '0011_mail_reference'),
11
    ]
12

  
13
    operations = [
14
        migrations.AlterModelOptions(
15
            name='mail',
16
            options={'ordering': ['creation_timestamp', 'post_date'], 'verbose_name': 'Mail'},
17
        ),
18
    ]
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
-