summaryrefslogtreecommitdiff
path: root/app/unused_apps/trips/migrations/0001_initial.py
blob: 3d3c222397c58e3f0da8b85c4b0e05c50e885fbe (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
# Generated by Django 2.1.7 on 2019-06-15 09:17

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('locations', '0018_auto_20190414_2124'),
    ]

    operations = [
        migrations.CreateModel(
            name='Trip',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=50)),
                ('subtitle', models.CharField(blank=True, max_length=200)),
                ('slug', models.SlugField(unique_for_date='pub_date')),
                ('dek_markdown', models.TextField()),
                ('dek_html', models.TextField(blank=True, null=True)),
                ('pub_date', models.DateTimeField(verbose_name='Date published')),
                ('start_date', models.DateTimeField(verbose_name='Date started')),
                ('end_date', models.DateTimeField(verbose_name='Date ended')),
                ('route', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='locations.Route')),
            ],
        ),
    ]