('description', models.TextField()),
('key', models.CharField(max_length=18)),
('secret', models.CharField(max_length=32)),
- ('status', models.CharField(choices=[(b'pending', b'Pending approval'), (b'accepted', b'Accepted'), (b'canceled', b'Canceled')], default=b'pending', max_length=16)),
+ ('status', models.CharField(choices=[('pending', 'Pending approval'), ('accepted', 'Accepted'), ('canceled', 'Canceled')], default='pending', max_length=16)),
('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='consumers', to=settings.AUTH_USER_MODEL)),
],
),
('sort_key_author', models.CharField(default='', verbose_name='sort key by author', max_length=120, editable=False, db_index=True)),
('slug', models.SlugField(unique=True, max_length=120, verbose_name='Slug')),
('common_slug', models.SlugField(max_length=120, verbose_name='Slug')),
- ('language', models.CharField(default=b'pol', max_length=3, verbose_name='language code', db_index=True)),
+ ('language', models.CharField(default='pol', max_length=3, verbose_name='language code', db_index=True)),
('description', models.TextField(verbose_name='Description', blank=True)),
('created_at', models.DateTimeField(auto_now_add=True, verbose_name='creation date', db_index=True)),
('changed_at', models.DateTimeField(auto_now=True, verbose_name='creation date', db_index=True)),
('extra_info', jsonfield.fields.JSONField(default={}, verbose_name='Additional information')),
('gazeta_link', models.CharField(max_length=240, blank=True)),
('wiki_link', models.CharField(max_length=240, blank=True)),
- ('cover', catalogue.fields.EbookField(b'cover', upload_to=catalogue.models.book._cover_upload_to, storage=fnpdjango.storage.BofhFileSystemStorage(), max_length=255, blank=True, null=True, verbose_name='cover')),
- ('cover_thumb', catalogue.fields.EbookField(b'cover_thumb', max_length=255, upload_to=catalogue.models.book._cover_thumb_upload_to, null=True, verbose_name='cover thumbnail', blank=True)),
+ ('cover', catalogue.fields.EbookField('cover', upload_to=catalogue.models.book._cover_upload_to, storage=fnpdjango.storage.BofhFileSystemStorage(), max_length=255, blank=True, null=True, verbose_name='cover')),
+ ('cover_thumb', catalogue.fields.EbookField('cover_thumb', max_length=255, upload_to=catalogue.models.book._cover_thumb_upload_to, null=True, verbose_name='cover thumbnail', blank=True)),
('_related_info', jsonfield.fields.JSONField(null=True, editable=False, blank=True)),
- ('txt_file', catalogue.fields.EbookField(b'txt', default=b'', storage=fnpdjango.storage.BofhFileSystemStorage(), upload_to=catalogue.models.book._txt_upload_to, max_length=255, blank=True, verbose_name='TXT file')),
- ('fb2_file', catalogue.fields.EbookField(b'fb2', default=b'', storage=fnpdjango.storage.BofhFileSystemStorage(), upload_to=catalogue.models.book._fb2_upload_to, max_length=255, blank=True, verbose_name='FB2 file')),
- ('pdf_file', catalogue.fields.EbookField(b'pdf', default=b'', storage=fnpdjango.storage.BofhFileSystemStorage(), upload_to=catalogue.models.book._pdf_upload_to, max_length=255, blank=True, verbose_name='PDF file')),
- ('epub_file', catalogue.fields.EbookField(b'epub', default=b'', storage=fnpdjango.storage.BofhFileSystemStorage(), upload_to=catalogue.models.book._epub_upload_to, max_length=255, blank=True, verbose_name='EPUB file')),
- ('mobi_file', catalogue.fields.EbookField(b'mobi', default=b'', storage=fnpdjango.storage.BofhFileSystemStorage(), upload_to=catalogue.models.book._mobi_upload_to, max_length=255, blank=True, verbose_name='MOBI file')),
- ('html_file', catalogue.fields.EbookField(b'html', default=b'', storage=fnpdjango.storage.BofhFileSystemStorage(), upload_to=catalogue.models.book._html_upload_to, max_length=255, blank=True, verbose_name='HTML file')),
- ('xml_file', catalogue.fields.EbookField(b'xml', default=b'', storage=fnpdjango.storage.BofhFileSystemStorage(), upload_to=catalogue.models.book._xml_upload_to, max_length=255, blank=True, verbose_name='XML file')),
- ('parent', models.ForeignKey(related_name=b'children', blank=True, to='catalogue.Book', null=True)),
+ ('txt_file', catalogue.fields.EbookField('txt', default='', storage=fnpdjango.storage.BofhFileSystemStorage(), upload_to=catalogue.models.book._txt_upload_to, max_length=255, blank=True, verbose_name='TXT file')),
+ ('fb2_file', catalogue.fields.EbookField('fb2', default='', storage=fnpdjango.storage.BofhFileSystemStorage(), upload_to=catalogue.models.book._fb2_upload_to, max_length=255, blank=True, verbose_name='FB2 file')),
+ ('pdf_file', catalogue.fields.EbookField('pdf', default='', storage=fnpdjango.storage.BofhFileSystemStorage(), upload_to=catalogue.models.book._pdf_upload_to, max_length=255, blank=True, verbose_name='PDF file')),
+ ('epub_file', catalogue.fields.EbookField('epub', default='', storage=fnpdjango.storage.BofhFileSystemStorage(), upload_to=catalogue.models.book._epub_upload_to, max_length=255, blank=True, verbose_name='EPUB file')),
+ ('mobi_file', catalogue.fields.EbookField('mobi', default='', storage=fnpdjango.storage.BofhFileSystemStorage(), upload_to=catalogue.models.book._mobi_upload_to, max_length=255, blank=True, verbose_name='MOBI file')),
+ ('html_file', catalogue.fields.EbookField('html', default='', storage=fnpdjango.storage.BofhFileSystemStorage(), upload_to=catalogue.models.book._html_upload_to, max_length=255, blank=True, verbose_name='HTML file')),
+ ('xml_file', catalogue.fields.EbookField('xml', default='', storage=fnpdjango.storage.BofhFileSystemStorage(), upload_to=catalogue.models.book._xml_upload_to, max_length=255, blank=True, verbose_name='XML file')),
+ ('parent', models.ForeignKey(related_name='children', blank=True, to='catalogue.Book', null=True)),
],
options={
'ordering': ('sort_key',),
name='BookMedia',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
- ('type', models.CharField(db_index=True, max_length=20, verbose_name='type', choices=[(b'mp3', 'MP3 file'), (b'ogg', 'Ogg Vorbis file'), (b'daisy', 'DAISY file')])),
+ ('type', models.CharField(db_index=True, max_length=20, verbose_name='type', choices=[('mp3', 'MP3 file'), ('ogg', 'Ogg Vorbis file'), ('daisy', 'DAISY file')])),
('name', models.CharField(max_length=512, verbose_name='name')),
('file', catalogue.fields.OverwritingFileField(upload_to=catalogue.models.bookmedia._file_upload_to, max_length=600, verbose_name='XML file')),
('uploaded_at', models.DateTimeField(auto_now_add=True, verbose_name='creation date', db_index=True)),
('extra_info', jsonfield.fields.JSONField(default={}, verbose_name='Additional information', editable=False)),
('source_sha1', models.CharField(max_length=40, null=True, editable=False, blank=True)),
- ('book', models.ForeignKey(related_name=b'media', to='catalogue.Book')),
+ ('book', models.ForeignKey(related_name='media', to='catalogue.Book')),
],
options={
'ordering': ('type', 'name'),
('description_ru', models.TextField(null=True, verbose_name='Description', blank=True)),
('description_uk', models.TextField(null=True, verbose_name='Description', blank=True)),
('book_slugs', models.TextField(verbose_name='Book stubs')),
- ('kind', models.CharField(default=b'book', max_length=10, verbose_name='form', db_index=True, choices=[(b'book', 'book'), (b'picture', b'picture')])),
+ ('kind', models.CharField(default='book', max_length=10, verbose_name='form', db_index=True, choices=[('book', 'book'), ('picture', 'picture')])),
],
options={
'ordering': ('title',),
('text', models.TextField()),
('short_text', models.TextField(editable=False)),
('anchor', models.CharField(max_length=120)),
- ('book', models.ForeignKey(related_name=b'fragments', to='catalogue.Book')),
+ ('book', models.ForeignKey(related_name='fragments', to='catalogue.Book')),
],
options={
'ordering': ('book', 'anchor'),
('name_uk', models.CharField(max_length=50, null=True, verbose_name='name', db_index=True)),
('slug', models.SlugField(max_length=120, verbose_name='Slug')),
('sort_key', models.CharField(max_length=120, verbose_name='Sort key', db_index=True)),
- ('category', models.CharField(db_index=True, max_length=50, verbose_name='Category', choices=[(b'author', 'author'), (b'epoch', 'period'), (b'kind', 'form'), (b'genre', 'genre'), (b'theme', 'motif'), (b'set', 'set'), (b'book', 'book'), (b'thing', 'thing')])),
+ ('category', models.CharField(db_index=True, max_length=50, verbose_name='Category', choices=[('author', 'author'), ('epoch', 'period'), ('kind', 'form'), ('genre', 'genre'), ('theme', 'motif'), ('set', 'set'), ('book', 'book'), ('thing', 'thing')])),
('description', models.TextField(verbose_name='Description', blank=True)),
('description_de', models.TextField(null=True, verbose_name='Description', blank=True)),
('description_en', models.TextField(null=True, verbose_name='Description', blank=True)),
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('object_id', models.PositiveIntegerField(verbose_name='object id', db_index=True)),
('content_type', models.ForeignKey(verbose_name='content type', to='contenttypes.ContentType')),
- ('tag', models.ForeignKey(related_name=b'items', verbose_name='tag', to='catalogue.Tag')),
+ ('tag', models.ForeignKey(related_name='items', verbose_name='tag', to='catalogue.Tag')),
],
options={
'db_table': 'catalogue_tag_relation',
migrations.AddField(
model_name='book',
name='ancestor',
- field=models.ManyToManyField(related_name=b'descendant', null=True, editable=False, to='catalogue.Book', blank=True),
+ field=models.ManyToManyField(related_name='descendant', null=True, editable=False, to='catalogue.Book', blank=True),
preserve_default=True,
),
]
migrations.AlterField(
model_name='tag',
name='category',
- field=models.CharField(db_index=True, max_length=50, verbose_name='Category', choices=[(b'author', 'author'), (b'epoch', 'period'), (b'kind', 'form'), (b'genre', 'genre'), (b'theme', 'motif'), (b'set', 'set'), (b'thing', 'thing')]),
+ field=models.CharField(db_index=True, max_length=50, verbose_name='Category', choices=[('author', 'author'), ('epoch', 'period'), ('kind', 'form'), ('genre', 'genre'), ('theme', 'motif'), ('set', 'set'), ('thing', 'thing')]),
),
migrations.RemoveField(
migrations.AlterField(
model_name='collection',
name='kind',
- field=models.CharField(default=b'book', max_length=10, verbose_name='kind', db_index=True, choices=[(b'book', 'book'), (b'picture', b'picture')]),
+ field=models.CharField(default='book', max_length=10, verbose_name='kind', db_index=True, choices=[('book', 'book'), ('picture', 'picture')]),
),
migrations.AlterField(
model_name='collection',
migrations.AlterField(
model_name='tag',
name='category',
- field=models.CharField(db_index=True, max_length=50, verbose_name='category', choices=[(b'author', 'author'), (b'epoch', 'epoch'), (b'kind', 'kind'), (b'genre', 'genre'), (b'theme', 'theme'), (b'set', 'set'), (b'thing', 'thing')]),
+ field=models.CharField(db_index=True, max_length=50, verbose_name='category', choices=[('author', 'author'), ('epoch', 'epoch'), ('kind', 'kind'), ('genre', 'genre'), ('theme', 'theme'), ('set', 'set'), ('thing', 'thing')]),
),
migrations.AlterField(
model_name='tag',
migrations.AddField(
model_name='bookmedia',
name='part_name',
- field=models.CharField(default=b'', max_length=512, verbose_name='part name'),
+ field=models.CharField(default='', max_length=512, verbose_name='part name'),
),
]
migrations.AlterField(
model_name='bookmedia',
name='part_name',
- field=models.CharField(default=b'', max_length=512, verbose_name='part name', blank=True),
+ field=models.CharField(default='', max_length=512, verbose_name='part name', blank=True),
),
]
migrations.AddField(
model_name='book',
name='cover_api_thumb',
- field=catalogue.fields.EbookField(b'cover_api_thumb', max_length=255, upload_to=catalogue.models.book.UploadToPath(b'book/cover_api_thumb/%s.jpg'), null=True, verbose_name='cover thumbnail for API', blank=True),
+ field=catalogue.fields.EbookField('cover_api_thumb', max_length=255, upload_to=catalogue.models.book.UploadToPath('book/cover_api_thumb/%s.jpg'), null=True, verbose_name='cover thumbnail for API', blank=True),
),
]
migrations.AddField(
model_name='book',
name='simple_cover',
- field=catalogue.fields.EbookField(b'simple_cover', max_length=255, upload_to=catalogue.models.book.UploadToPath(b'book/cover_simple/%s.jpg'), null=True, verbose_name='cover for mobile app', blank=True),
+ field=catalogue.fields.EbookField('simple_cover', max_length=255, upload_to=catalogue.models.book.UploadToPath('book/cover_simple/%s.jpg'), null=True, verbose_name='cover for mobile app', blank=True),
),
migrations.AlterField(
model_name='book',
name='cover_api_thumb',
- field=catalogue.fields.EbookField(b'cover_api_thumb', max_length=255, upload_to=catalogue.models.book.UploadToPath(b'book/cover_api_thumb/%s.jpg'), null=True, verbose_name='cover thumbnail for mobile app', blank=True),
+ field=catalogue.fields.EbookField('cover_api_thumb', max_length=255, upload_to=catalogue.models.book.UploadToPath('book/cover_api_thumb/%s.jpg'), null=True, verbose_name='cover thumbnail for mobile app', blank=True),
),
]
name='Attachment',
fields=[
('key', models.CharField(help_text='A unique name for this attachment', max_length=255, serialize=False, verbose_name='key', primary_key=True)),
- ('attachment', models.FileField(upload_to=b'chunks/attachment')),
+ ('attachment', models.FileField(upload_to='chunks/attachment')),
],
options={
'ordering': ('key',),
('key', models.CharField(max_length=255, unique=True, verbose_name='key')),
('email', models.EmailField(max_length=254, verbose_name='email')),
('amount', models.DecimalField(decimal_places=2, max_digits=10, verbose_name='amount')),
- ('method', models.CharField(choices=[(b'payu', b'PayU'), (b'payu-re', b'PayU Recurring'), (b'paypal-re', b'PayPal Recurring')], max_length=255, verbose_name='method')),
+ ('method', models.CharField(choices=[('payu', 'PayU'), ('payu-re', 'PayU Recurring'), ('paypal-re', 'PayPal Recurring')], max_length=255, verbose_name='method')),
('is_active', models.BooleanField(default=False, verbose_name='active')),
('is_cancelled', models.BooleanField(default=False, verbose_name='cancelled')),
('started_at', models.DateTimeField(auto_now_add=True, verbose_name='started at')),
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('tag', models.CharField(max_length=64)),
- ('file', models.FileField(upload_to=b'contact/attachment')),
+ ('file', models.FileField(upload_to='contact/attachment')),
],
),
migrations.CreateModel(
('start', models.DateField(verbose_name='start', db_index=True)),
('end', models.DateField(verbose_name='end', db_index=True)),
('redakcja_url', models.URLField(verbose_name='redakcja URL', blank=True)),
- ('cover', models.ImageField(upload_to=b'funding/covers', verbose_name='Cover')),
+ ('cover', models.ImageField(upload_to='funding/covers', verbose_name='Cover')),
('notified_near', models.DateTimeField(null=True, verbose_name='Near-end notifications sent', blank=True)),
('notified_end', models.DateTimeField(null=True, verbose_name='End notifications sent', blank=True)),
('book', models.ForeignKey(blank=True, to='catalogue.Book', help_text='Published book.', null=True)),
migrations.AddField(
model_name='isbnpool',
name='purpose',
- field=models.CharField(default='', max_length=4, choices=[(b'WL', b'Wolne Lektury'), (b'FNP', b'Fundacja Nowoczesna Polska')]),
+ field=models.CharField(default='', max_length=4, choices=[('WL', 'Wolne Lektury'), ('FNP', 'Fundacja Nowoczesna Polska')]),
preserve_default=False,
),
]
migrations.AddField(
model_name='onixrecord',
name='dc_slug',
- field=models.CharField(default=b'', max_length=256, db_index=True),
+ field=models.CharField(default='', max_length=256, db_index=True),
),
migrations.AlterUniqueTogether(
name='onixrecord',
name='Continuations',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
- ('pickle', models.FileField(upload_to=b'lesmianator', verbose_name='Continuations file')),
+ ('pickle', models.FileField(upload_to='lesmianator', verbose_name='Continuations file')),
('object_id', models.PositiveIntegerField()),
('content_type', models.ForeignKey(to='contenttypes.ContentType')),
],
('slug', models.SlugField(max_length=120, unique=True, null=True, verbose_name='Slug')),
('url', models.CharField(max_length=120, verbose_name='url', blank=True)),
('description', models.TextField(verbose_name='Description', blank=True)),
- ('catalog', models.ForeignKey(related_name=b'libraries', on_delete=django.db.models.deletion.PROTECT, to='libraries.Catalog')),
+ ('catalog', models.ForeignKey(related_name='libraries', on_delete=django.db.models.deletion.PROTECT, to='libraries.Catalog')),
],
options={
'verbose_name': 'library',
import sorl.thumbnail.fields
import jsonfield.fields
import django.core.files.storage
-from django.utils.encoding import force_bytes
class Migration(migrations.Migration):
('sort_key_author', models.CharField(default='', verbose_name='sort key by author', max_length=120, editable=False, db_index=True)),
('created_at', models.DateTimeField(auto_now_add=True, verbose_name='creation date', db_index=True)),
('changed_at', models.DateTimeField(auto_now=True, verbose_name='creation date', db_index=True)),
- ('xml_file', models.FileField(upload_to=b'xml', storage=django.core.files.storage.FileSystemStorage(base_url=b'/media/pictures/', location=join(force_bytes(settings.MEDIA_ROOT), b'pictures')), verbose_name=b'xml_file')),
- ('image_file', sorl.thumbnail.fields.ImageField(upload_to=b'images', storage=django.core.files.storage.FileSystemStorage(base_url=b'/media/pictures/', location=join(force_bytes(settings.MEDIA_ROOT), b'pictures')), verbose_name='image_file')),
- ('html_file', models.FileField(upload_to=b'html', storage=django.core.files.storage.FileSystemStorage(base_url=b'/media/pictures/', location=join(force_bytes(settings.MEDIA_ROOT), b'pictures')), verbose_name=b'html_file')),
+ ('xml_file', models.FileField(upload_to='xml', storage=django.core.files.storage.FileSystemStorage(base_url='/media/pictures/', location=join(settings.MEDIA_ROOT, 'pictures')), verbose_name='xml_file')),
+ ('image_file', sorl.thumbnail.fields.ImageField(upload_to='images', storage=django.core.files.storage.FileSystemStorage(base_url='/media/pictures/', location=join(settings.MEDIA_ROOT, 'pictures')), verbose_name='image_file')),
+ ('html_file', models.FileField(upload_to='html', storage=django.core.files.storage.FileSystemStorage(base_url='/media/pictures/', location=join(settings.MEDIA_ROOT, 'pictures')), verbose_name='html_file')),
('areas_json', jsonfield.fields.JSONField(default={}, verbose_name='picture areas JSON', editable=False)),
('extra_info', jsonfield.fields.JSONField(default={}, verbose_name='Additional information')),
('culturepl_link', models.CharField(max_length=240, blank=True)),
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('area', jsonfield.fields.JSONField(default={}, verbose_name='area', editable=False)),
- ('kind', models.CharField(db_index=True, max_length=10, verbose_name='form', choices=[(b'thing', 'thing'), (b'theme', 'motif')])),
- ('picture', models.ForeignKey(related_name=b'areas', to='picture.Picture')),
+ ('kind', models.CharField(db_index=True, max_length=10, verbose_name='form', choices=[('thing', 'thing'), ('theme', 'motif')])),
+ ('picture', models.ForeignKey(related_name='areas', to='picture.Picture')),
],
options={
},
migrations.AlterField(
model_name='picturearea',
name='kind',
- field=models.CharField(db_index=True, max_length=10, verbose_name='kind', choices=[(b'thing', 'thing'), (b'theme', 'theme')]),
+ field=models.CharField(db_index=True, max_length=10, verbose_name='kind', choices=[('thing', 'thing'), ('theme', 'theme')]),
),
]
import sorl.thumbnail.fields
from django.conf import settings
from django.db import migrations, models
-from django.utils.encoding import force_bytes
import django.core.files.storage
migrations.AlterField(
model_name='picture',
name='html_file',
- field=models.FileField(upload_to=b'html', storage=django.core.files.storage.FileSystemStorage(base_url=b'/media/pictures/', location=join(force_bytes(settings.MEDIA_ROOT), b'pictures')), verbose_name='html file'),
+ field=models.FileField(upload_to='html', storage=django.core.files.storage.FileSystemStorage(base_url='/media/pictures/', location=join(settings.MEDIA_ROOT, 'pictures')), verbose_name='html file'),
),
migrations.AlterField(
model_name='picture',
name='image_file',
- field=sorl.thumbnail.fields.ImageField(upload_to=b'images', storage=django.core.files.storage.FileSystemStorage(base_url=b'/media/pictures/', location=join(force_bytes(settings.MEDIA_ROOT), b'pictures')), verbose_name='image file'),
+ field=sorl.thumbnail.fields.ImageField(upload_to='images', storage=django.core.files.storage.FileSystemStorage(base_url='/media/pictures/', location=join(settings.MEDIA_ROOT, 'pictures')), verbose_name='image file'),
),
migrations.AlterField(
model_name='picture',
name='xml_file',
- field=models.FileField(upload_to=b'xml', storage=django.core.files.storage.FileSystemStorage(base_url=b'/media/pictures/', location=join(force_bytes(settings.MEDIA_ROOT), b'pictures')), verbose_name='xml file'),
+ field=models.FileField(upload_to='xml', storage=django.core.files.storage.FileSystemStorage(base_url='/media/pictures/', location=join(settings.MEDIA_ROOT, 'pictures')), verbose_name='xml file'),
),
]
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('content', models.TextField(verbose_name='content')),
('vote_count', models.IntegerField(default=0, verbose_name='vote count')),
- ('poll', models.ForeignKey(related_name=b'items', to='polls.Poll')),
+ ('poll', models.ForeignKey(related_name='items', to='polls.Poll')),
],
options={
'verbose_name': 'vote item',
migrations.AddField(
model_name='notification',
name='image',
- field=models.FileField(upload_to=b'push/img', verbose_name='image', blank=True),
+ field=models.FileField(upload_to='push/img', verbose_name='image', blank=True),
),
migrations.AlterField(
model_name='notification',
migrations.AlterField(
model_name='notification',
name='image',
- field=models.ImageField(upload_to=b'push/img', verbose_name='image', blank=True),
+ field=models.ImageField(upload_to='push/img', verbose_name='image', blank=True),
),
]
('vip', models.CharField(max_length=128, null=True, verbose_name='VIP', blank=True)),
('link', models.URLField(verbose_name='link')),
('sticky', models.BooleanField(default=False, help_text='Sticky cites will take precedense.', db_index=True, verbose_name='sticky')),
- ('image', models.ImageField(help_text='Best image is exactly 975px wide and weights under 100kB.', upload_to=b'social/cite', null=True, verbose_name='image', blank=True)),
+ ('image', models.ImageField(help_text='Best image is exactly 975px wide and weights under 100kB.', upload_to='social/cite', null=True, verbose_name='image', blank=True)),
('image_shift', models.IntegerField(help_text='Vertical shift, in percents. 0 means top, 100 is bottom. Default is 50%.', null=True, verbose_name='shift', blank=True)),
('image_title', models.CharField(max_length=255, null=True, verbose_name='Title', blank=True)),
('image_author', models.CharField(max_length=255, null=True, verbose_name='author', blank=True)),
('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={
('name', models.CharField(max_length=120, verbose_name='name')),
('sponsors', jsonfield.fields.JSONField(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={
},
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('amount', models.DecimalField(verbose_name='amount', max_digits=20, decimal_places=4)),
('currency', models.CharField(max_length=3, verbose_name='currency')),
- ('status', models.CharField(default=b'new', max_length=20, verbose_name='status', db_index=True, choices=[(b'new', 'new'), (b'in_progress', 'in progress'), (b'partially_paid', 'partially paid'), (b'paid', 'paid'), (b'failed', 'failed')])),
+ ('status', models.CharField(default='new', max_length=20, verbose_name='status', db_index=True, choices=[('new', 'new'), ('in_progress', 'in progress'), ('partially_paid', 'partially paid'), ('paid', 'paid'), ('failed', 'failed')])),
('backend', models.CharField(max_length=50, verbose_name='backend')),
('created_on', models.DateTimeField(auto_now_add=True, verbose_name='created on', db_index=True)),
('paid_on', models.DateTimeField(default=None, null=True, verbose_name='paid on', db_index=True, blank=True)),
('amount_paid', models.DecimalField(default=0, verbose_name='amount paid', max_digits=20, decimal_places=4)),
('external_id', models.CharField(max_length=64, null=True, verbose_name='external id', blank=True)),
('description', models.CharField(max_length=128, null=True, verbose_name='Description', blank=True)),
- ('order', models.ForeignKey(related_name=b'payment', to='funding.Funding')),
+ ('order', models.ForeignKey(related_name='payment', to='funding.Funding')),
],
options={
'ordering': ('-created_on',),
migrations.AlterField(
model_name='payment',
name='status',
- field=models.CharField(default=b'new', max_length=20, verbose_name='status', db_index=True, choices=[(b'new', 'new'), (b'in_progress', 'in progress'), (b'accepted_for_proc', 'accepted for processing'), (b'partially_paid', 'partially paid'), (b'paid', 'paid'), (b'cancelled', 'cancelled'), (b'failed', 'failed')]),
+ field=models.CharField(default='new', max_length=20, verbose_name='status', db_index=True, choices=[('new', 'new'), ('in_progress', 'in progress'), ('accepted_for_proc', 'accepted for processing'), ('partially_paid', 'partially paid'), ('paid', 'paid'), ('cancelled', 'cancelled'), ('failed', 'failed')]),
),
]