X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/ae60b2a3949e96357477cc04f90fd0873cee8a92..47321719a79024f176b315816a1de5b978ec0f1a:/src/sponsors/migrations/0001_initial.py?ds=sidebyside diff --git a/src/sponsors/migrations/0001_initial.py b/src/sponsors/migrations/0001_initial.py index d672e846a..4f5e46847 100644 --- a/src/sponsors/migrations/0001_initial.py +++ b/src/sponsors/migrations/0001_initial.py @@ -1,8 +1,7 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# from django.db import models, migrations -import jsonfield.fields class Migration(migrations.Migration): @@ -17,7 +16,7 @@ class Migration(migrations.Migration): ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('name', models.CharField(max_length=120, verbose_name='name')), ('_description', models.CharField(max_length=255, verbose_name='Description', blank=True)), - ('logo', models.ImageField(upload_to=b'sponsorzy/sponsor/logo', verbose_name='logo')), + ('logo', models.ImageField(upload_to='sponsorzy/sponsor/logo', verbose_name='logo')), ('url', models.URLField(verbose_name='url', blank=True)), ], options={ @@ -29,9 +28,9 @@ class Migration(migrations.Migration): fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('name', models.CharField(max_length=120, verbose_name='name')), - ('sponsors', jsonfield.fields.JSONField(default={}, verbose_name='sponsors')), + ('sponsors', models.TextField(default='{}', verbose_name='sponsors')), ('_html', models.TextField(editable=False, blank=True)), - ('sprite', models.ImageField(upload_to=b'sponsorzy/sprite', blank=True)), + ('sprite', models.ImageField(upload_to='sponsorzy/sprite', blank=True)), ], options={ },