Cleaning some requirements.
[wolnelektury.git] / src / sponsors / migrations / 0001_initial.py
1 # This file is part of Wolnelektury, 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
6
7 class Migration(migrations.Migration):
8
9     dependencies = [
10     ]
11
12     operations = [
13         migrations.CreateModel(
14             name='Sponsor',
15             fields=[
16                 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
17                 ('name', models.CharField(max_length=120, verbose_name='name')),
18                 ('_description', models.CharField(max_length=255, verbose_name='Description', blank=True)),
19                 ('logo', models.ImageField(upload_to='sponsorzy/sponsor/logo', verbose_name='logo')),
20                 ('url', models.URLField(verbose_name='url', blank=True)),
21             ],
22             options={
23             },
24             bases=(models.Model,),
25         ),
26         migrations.CreateModel(
27             name='SponsorPage',
28             fields=[
29                 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
30                 ('name', models.CharField(max_length=120, verbose_name='name')),
31                 ('sponsors', models.TextField(default='{}', verbose_name='sponsors')),
32                 ('_html', models.TextField(editable=False, blank=True)),
33                 ('sprite', models.ImageField(upload_to='sponsorzy/sprite', blank=True)),
34             ],
35             options={
36             },
37             bases=(models.Model,),
38         ),
39     ]