summaryrefslogtreecommitdiff
path: root/app/photos/migrations/0001_initial.py
blob: f06bad59a083a34e34c66553ee278c864ade1d1b (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
# Generated by Django 2.1.7 on 2019-03-30 17:07

import datetime
from django.db import migrations, models
import photos.models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='LuxImage',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('image', models.FileField(blank=True, null=True, upload_to=photos.models.get_upload_path)),
                ('title', models.CharField(blank=True, max_length=300, null=True)),
                ('alt', models.CharField(blank=True, max_length=300, null=True)),
                ('photo_credit_source', models.CharField(blank=True, max_length=300, null=True)),
                ('photo_credit_url', models.CharField(blank=True, max_length=300, null=True)),
                ('caption', models.TextField(blank=True, null=True)),
                ('pub_date', models.DateTimeField(default=datetime.datetime.now)),
                ('height', models.CharField(blank=True, max_length=6, null=True)),
                ('width', models.CharField(blank=True, max_length=6, null=True)),
                ('is_public', models.BooleanField(default=True)),
            ],
            options={
                'get_latest_by': 'pub_date',
                'ordering': ('-pub_date', 'id'),
                'verbose_name_plural': 'Images',
            },
        ),
        migrations.CreateModel(
            name='LuxImageSize',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(blank=True, max_length=30, null=True)),
                ('width', models.IntegerField(blank=True, null=True)),
                ('height', models.IntegerField(blank=True, null=True)),
                ('quality', models.IntegerField()),
            ],
            options={
                'verbose_name_plural': 'Image Sizes',
            },
        ),
        migrations.CreateModel(
            name='LuxVideo',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('video_mp4', models.FileField(blank=True, null=True, upload_to=photos.models.get_vid_upload_path)),
                ('video_webm', models.FileField(blank=True, null=True, upload_to=photos.models.get_vid_upload_path)),
                ('video_poster', models.FileField(blank=True, null=True, upload_to=photos.models.get_vid_upload_path)),
                ('title', models.CharField(blank=True, max_length=300, null=True)),
                ('pub_date', models.DateTimeField(default=datetime.datetime.now)),
                ('youtube_url', models.CharField(blank=True, max_length=80, null=True)),
                ('vimeo_url', models.CharField(blank=True, max_length=300, null=True)),
            ],
            options={
                'get_latest_by': 'pub_date',
                'ordering': ('-pub_date', 'id'),
                'verbose_name_plural': 'Videos',
            },
        ),
        migrations.AddField(
            model_name='luximage',
            name='sizes',
            field=models.ManyToManyField(blank=True, to='photos.LuxImageSize'),
        ),
    ]