Add cover_thumb to tests.
[wolnelektury.git] / src / sponsors / migrations / 0001_initial.py
1 # -*- coding: utf-8 -*-
2 from __future__ import unicode_literals
3
4 from django.db import models, migrations
5 import jsonfield.fields
6
7
8 class Migration(migrations.Migration):
9
10     dependencies = [
11     ]
12
13     operations = [
14         migrations.CreateModel(
15             name='Sponsor',
16             fields=[
17                 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
18                 ('name', models.CharField(max_length=120, verbose_name='name')),
19                 ('_description', models.CharField(max_length=255, verbose_name='Description', blank=True)),
20                 ('logo', models.ImageField(upload_to=b'sponsorzy/sponsor/logo', verbose_name='logo')),
21                 ('url', models.URLField(verbose_name='url', blank=True)),
22             ],
23             options={
24             },
25             bases=(models.Model,),
26         ),
27         migrations.CreateModel(
28             name='SponsorPage',
29             fields=[
30                 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
31                 ('name', models.CharField(max_length=120, verbose_name='name')),
32                 ('sponsors', jsonfield.fields.JSONField(default={}, verbose_name='sponsors')),
33                 ('_html', models.TextField(editable=False, blank=True)),
34                 ('sprite', models.ImageField(upload_to=b'sponsorzy/sprite', blank=True)),
35             ],
36             options={
37             },
38             bases=(models.Model,),
39         ),
40     ]