summaryrefslogtreecommitdiff
path: root/app/jrnl/migrations/0001_initial.py
blob: a3660ab431d37ea0884ebd007187e8a5d15cb43a (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-03-09 10:13
from __future__ import unicode_literals

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        #('locations', '__first__'),
        ('photos', '0003_luxgallery_caption_style'),
    ]

    operations = [
        migrations.CreateModel(
            name='Entry',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=200)),
                ('slug', models.SlugField(unique_for_date='pub_date')),
                ('body_html', models.TextField(blank=True)),
                ('body_markdown', models.TextField()),
                ('dek', models.TextField(blank=True, null=True)),
                ('pub_date', models.DateTimeField(verbose_name='Date published')),
                ('enable_comments', models.BooleanField(default=False)),
                ('point', django.contrib.gis.db.models.fields.PointField(blank=True, null=True, srid=4326)),
                ('status', models.IntegerField(choices=[(0, 'Draft'), (1, 'Published')], default=0)),
                ('image', models.FileField(blank=True, help_text='should be 205px high', null=True, upload_to=jrnl.models.get_upload_path)),
                ('meta_description', models.CharField(blank=True, max_length=256, null=True)),
                ('template_name', models.IntegerField(choices=[(0, 'single'), (1, 'double'), (2, 'single-dark'), (3, 'double-dark'), (4, 'bigimg'), (5, 'bigimg-dark')], default=0)),
                ('location', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='locations.Location')),
                ('photo_gallery', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='photos.PhotoGallery', verbose_name='photo set')),
            ],
            options={
                'verbose_name_plural': 'entries',
                'get_latest_by': 'pub_date',
                'ordering': ('-pub_date',),
            },
        ),
        migrations.CreateModel(
            name='EntryAside',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=200)),
                ('body', models.TextField(blank=True, null=True)),
                ('entry', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='jrnl.Entry')),
            ],
        ),
        migrations.CreateModel(
            name='HomepageCurrator',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('alt_text', models.CharField(max_length=200)),
                ('image_base_url', models.CharField(max_length=200)),
                ('tag_line', models.CharField(max_length=200)),
                ('template_name', models.CharField(help_text='full path', max_length=200)),
                ('banner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='banner', to='jrnl.Entry')),
                ('entry_list', models.ManyToManyField(to='jrnl.Entry')),
            ],
        ),
        migrations.CreateModel(
            name='PostImage',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=100)),
                ('image', models.ImageField(upload_to='/Users/sng/Sites/luxagraf/site/media/images/2016')),
            ],
        ),
    ]