fix
[redakcja.git] / src / cover / migrations / 0001_initial.py
1 # This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
3 #
4 from django.db import models, migrations
5 import cover.models
6
7
8 class Migration(migrations.Migration):
9
10     dependencies = [
11     ]
12
13     operations = [
14         migrations.CreateModel(
15             name='Image',
16             fields=[
17                 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
18                 ('title', models.CharField(max_length=255, verbose_name='title')),
19                 ('author', models.CharField(max_length=255, verbose_name='author')),
20                 ('license_name', models.CharField(max_length=255, verbose_name='license name')),
21                 ('license_url', models.URLField(max_length=255, verbose_name='license URL', blank=True)),
22                 ('source_url', models.URLField(null=True, verbose_name='source URL', blank=True)),
23                 ('download_url', models.URLField(unique=True, null=True, verbose_name='image download URL', blank=True)),
24                 ('file', models.ImageField(upload_to=b'cover/image', storage=cover.models.OverwriteStorage(), verbose_name='file')),
25             ],
26             options={
27                 'verbose_name': 'cover image',
28                 'verbose_name_plural': 'cover images',
29             },
30             bases=(models.Model,),
31         ),
32     ]