summaryrefslogtreecommitdiff
path: root/patchwork/migrations/0022_add_subject_match_to_project.py
blob: 1596d22bcebfe49876f400d5965da0cf59c3d904 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('patchwork', '0021_django_1_10_fixes'),
    ]

    operations = [
        migrations.AddField(
            model_name='project',
            name='subject_match',
            field=models.CharField(
                blank=True,
                default=b'',
                help_text=b'Regex to match the subject against if only part '
                          b'of emails sent to the list belongs to this '
                          b'project. Will be used with IGNORECASE and '
                          b'MULTILINE flags. If rules for more projects match '
                          b'the first one returned from DB is chosen; empty '
                          b'field serves as a default for every email which '
                          b'has no other match.',
                max_length=64,
            ),
        ),
        migrations.AlterField(
            model_name='project',
            name='listid',
            field=models.CharField(max_length=255),
        ),
        migrations.AlterUniqueTogether(
            name='project', unique_together=set([('listid', 'subject_match')]),
        ),
    ]