summaryrefslogtreecommitdiff
path: root/app/locations/migrations/0007_campsite.py
blob: a6671e685f6f126aabb3a44dfff75c111de06e7a (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
32
33
34
35
36
# Generated by Django 2.0.1 on 2018-07-07 09:58

import django.contrib.gis.db.models.fields
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone


class Migration(migrations.Migration):

    dependencies = [
        ('locations', '0006_auto_20180629_1739'),
    ]

    operations = [
        migrations.CreateModel(
            name='Campsite',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('point', django.contrib.gis.db.models.fields.PointField(blank=True, srid=4326)),
                ('date_arrived', models.DateField(default=django.utils.timezone.now)),
                ('date_left', models.DateField(default=django.utils.timezone.now)),
                ('campsite_type', models.IntegerField(choices=[(0, 'National Park'), (1, 'National Forest'), (2, 'National Other'), (3, 'State Park'), (4, 'State Forest'), (5, 'County Park'), (6, 'City Park'), (7, 'Boondocking'), (8, 'Other')], default=0)),
                ('campsite_number', models.IntegerField(blank=True, null=True)),
                ('campsite_we_wish_we_had', models.IntegerField(blank=True, null=True)),
                ('body_markdown', models.TextField(blank=True, null=True)),
                ('body_html', models.TextField(blank=True, null=True)),
                ('image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='media.LuxImage')),
                ('location', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='locations.Location')),
            ],
            options={
                'ordering': ('-date_arrived',),
                'get_latest_by': 'date_arrived',
            },
        ),
    ]