New menu.
[wolnelektury.git] / src / messaging / migrations / 0003_auto_20200128_2230.py
1 # Generated by Django 2.2.9 on 2020-01-28 21:30
2
3 from django.db import migrations, models
4
5
6 class Migration(migrations.Migration):
7
8     dependencies = [
9         ('messaging', '0002_auto_20200117_1326'),
10     ]
11
12     operations = [
13         migrations.CreateModel(
14             name='Contact',
15             fields=[
16                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
17                 ('email', models.EmailField(max_length=254, unique=True)),
18                 ('level', models.PositiveSmallIntegerField(choices=[(20, 'Tried'), (30, 'Single'), (40, 'Recurring'), (10, 'Cold'), (50, 'Opt out')])),
19                 ('since', models.DateTimeField()),
20                 ('expires_at', models.DateTimeField(blank=True, null=True)),
21             ],
22         ),
23         migrations.RemoveField(
24             model_name='emailtemplate',
25             name='days',
26         ),
27         migrations.RemoveField(
28             model_name='emailtemplate',
29             name='hour',
30         ),
31         migrations.AddField(
32             model_name='emailtemplate',
33             name='dow_1',
34             field=models.BooleanField(default=True, verbose_name='monday'),
35         ),
36         migrations.AddField(
37             model_name='emailtemplate',
38             name='dow_2',
39             field=models.BooleanField(default=True, verbose_name='tuesday'),
40         ),
41         migrations.AddField(
42             model_name='emailtemplate',
43             name='dow_3',
44             field=models.BooleanField(default=True, verbose_name='wednesday'),
45         ),
46         migrations.AddField(
47             model_name='emailtemplate',
48             name='dow_4',
49             field=models.BooleanField(default=True, verbose_name='thursday'),
50         ),
51         migrations.AddField(
52             model_name='emailtemplate',
53             name='dow_5',
54             field=models.BooleanField(default=True, verbose_name='friday'),
55         ),
56         migrations.AddField(
57             model_name='emailtemplate',
58             name='dow_6',
59             field=models.BooleanField(default=True, verbose_name='saturday'),
60         ),
61         migrations.AddField(
62             model_name='emailtemplate',
63             name='dow_7',
64             field=models.BooleanField(default=True, verbose_name='sunday'),
65         ),
66         migrations.AddField(
67             model_name='emailtemplate',
68             name='max_day_of_month',
69             field=models.PositiveSmallIntegerField(blank=True, null=True, verbose_name='max day of month'),
70         ),
71         migrations.AddField(
72             model_name='emailtemplate',
73             name='max_days_since',
74             field=models.SmallIntegerField(blank=True, null=True, verbose_name='max_days_since'),
75         ),
76         migrations.AddField(
77             model_name='emailtemplate',
78             name='max_hour',
79             field=models.PositiveSmallIntegerField(blank=True, null=True, verbose_name='max hour'),
80         ),
81         migrations.AddField(
82             model_name='emailtemplate',
83             name='min_day_of_month',
84             field=models.PositiveSmallIntegerField(blank=True, null=True, verbose_name='min day of month'),
85         ),
86         migrations.AddField(
87             model_name='emailtemplate',
88             name='min_days_since',
89             field=models.SmallIntegerField(blank=True, null=True, verbose_name='min_days_since'),
90         ),
91         migrations.AddField(
92             model_name='emailtemplate',
93             name='min_hour',
94             field=models.PositiveSmallIntegerField(blank=True, null=True, verbose_name='min hour'),
95         ),
96         migrations.AlterField(
97             model_name='emailtemplate',
98             name='state',
99             field=models.CharField(choices=[('cold', 'cold group'), ('club-payment-unfinished', 'club would-be donor'), ('club-single', 'club one-time donors'), ('club-membership-expiring', 'club one-time donors with donation expiring'), ('club-recurring', 'club recurring donor'), ('club-recurring-payment-problem', 'club recurring donors with donation expired')], help_text='?', max_length=128, verbose_name='state'),
100         ),
101     ]