forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path0001_initial.py
More file actions
50 lines (42 loc) · 1.53 KB
/
0001_initial.py
File metadata and controls
50 lines (42 loc) · 1.53 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Copyright The IETF Trust 2018-2020, All Rights Reserved
# -*- coding: utf-8 -*-
# Generated by Django 1.11.10 on 2018-02-20 10:52
from typing import List, Tuple # pyflakes:ignore
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
] # type: List[Tuple[str]]
operations = [
migrations.CreateModel(
name='MailTrigger',
fields=[
('slug', models.CharField(max_length=32, primary_key=True, serialize=False)),
('desc', models.TextField(blank=True)),
],
options={
'ordering': ['slug'],
},
),
migrations.CreateModel(
name='Recipient',
fields=[
('slug', models.CharField(max_length=32, primary_key=True, serialize=False)),
('desc', models.TextField(blank=True)),
('template', models.TextField(blank=True, null=True)),
],
options={
'ordering': ['slug'],
},
),
migrations.AddField(
model_name='mailtrigger',
name='cc',
field=models.ManyToManyField(blank=True, related_name='used_in_cc', to='mailtrigger.Recipient'),
),
migrations.AddField(
model_name='mailtrigger',
name='to',
field=models.ManyToManyField(blank=True, related_name='used_in_to', to='mailtrigger.Recipient'),
),
]