summaryrefslogtreecommitdiff
path: root/app/lttr/migrations/0015_newnewslettermailing.py
blob: 0d8fa34f2637097e1a2b81975813f35345095eb7 (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
# Generated by Django 3.1 on 2021-03-24 12:54

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('media', '0008_auto_20201202_1155'),
        ('posts', '0019_auto_20210323_2155'),
        ('lttr', '0014_newsletter_intro'),
    ]

    operations = [
        migrations.CreateModel(
            name='NewNewsletterMailing',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(blank=True, max_length=250)),
                ('subtitle', models.CharField(blank=True, max_length=250, null=True)),
                ('body_html', models.TextField(blank=True)),
                ('body_email_html', models.TextField(blank=True)),
                ('body_markdown', models.TextField(blank=True)),
                ('pub_date', models.DateTimeField(blank=True)),
                ('issue', models.PositiveIntegerField(blank=True)),
                ('featured_image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='media.luximage')),
                ('newsletter', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='lttr.newsletter')),
                ('post', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='posts.post')),
            ],
            options={
                'ordering': ('-title', '-pub_date'),
            },
        ),
    ]