43 lines
1.5 KiB
Python
43 lines
1.5 KiB
Python
# Generated by Django 2.2.12 on 2020-04-29 03:13
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Campaign',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('subject', models.TextField()),
|
|
],
|
|
),
|
|
migrations.CreateModel(
|
|
name='Contact',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('email', models.EmailField(max_length=254)),
|
|
],
|
|
),
|
|
migrations.CreateModel(
|
|
name='Receipt',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('sent_date', models.DateTimeField(blank=True)),
|
|
('campaign', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='wagtailbirdsong.Campaign')),
|
|
('contact', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='wagtailbirdsong.Contact')),
|
|
],
|
|
),
|
|
migrations.AddField(
|
|
model_name='campaign',
|
|
name='receipts',
|
|
field=models.ManyToManyField(through='wagtailbirdsong.Receipt', to='wagtailbirdsong.Contact'),
|
|
),
|
|
] |