summaryrefslogtreecommitdiff
path: root/app/lttr/migrations/0015_newnewslettermailing.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/lttr/migrations/0015_newnewslettermailing.py')
-rw-r--r--app/lttr/migrations/0015_newnewslettermailing.py35
1 files changed, 35 insertions, 0 deletions
diff --git a/app/lttr/migrations/0015_newnewslettermailing.py b/app/lttr/migrations/0015_newnewslettermailing.py
new file mode 100644
index 0000000..0d8fa34
--- /dev/null
+++ b/app/lttr/migrations/0015_newnewslettermailing.py
@@ -0,0 +1,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'),
+ },
+ ),
+ ]