summaryrefslogtreecommitdiff
path: root/app/publications/migrations/0004_pitchidea.py
blob: db72d580aacf951a178c5a0b6a52d3cd97173aac (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
# Generated by Django 2.1.1 on 2019-01-31 10:46

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


class Migration(migrations.Migration):

    dependencies = [
        ('publications', '0003_auto_20190131_0923'),
    ]

    operations = [
        migrations.CreateModel(
            name='PitchIdea',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=250)),
                ('pitch', models.TextField()),
                ('date_created', models.DateTimeField(auto_now_add=True)),
                ('date_updated', models.DateTimeField(auto_now=True)),
                ('publication', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='publications.Publication')),
            ],
            options={
                'ordering': ('-title', '-date_created'),
            },
        ),
    ]