X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/6280673f35e13e75e81c5b7821bd2a44a1831eab..357027375ff8867f42ca34bcbfb5a78b5b185fc3:/src/chunks/migrations/0001_initial.py diff --git a/src/chunks/migrations/0001_initial.py b/src/chunks/migrations/0001_initial.py new file mode 100644 index 000000000..878e4fbfb --- /dev/null +++ b/src/chunks/migrations/0001_initial.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + 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')), + ], + options={ + 'ordering': ('key',), + 'verbose_name': 'attachment', + 'verbose_name_plural': 'attachments', + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='Chunk', + fields=[ + ('key', models.CharField(help_text='A unique name for this piece of content', max_length=255, serialize=False, verbose_name='key', primary_key=True)), + ('description', models.CharField(max_length=255, null=True, verbose_name='Description', blank=True)), + ('content', models.TextField(null=True, verbose_name='content', blank=True)), + ('content_de', models.TextField(null=True, verbose_name='content', blank=True)), + ('content_en', models.TextField(null=True, verbose_name='content', blank=True)), + ('content_es', models.TextField(null=True, verbose_name='content', blank=True)), + ('content_fr', models.TextField(null=True, verbose_name='content', blank=True)), + ('content_it', models.TextField(null=True, verbose_name='content', blank=True)), + ('content_lt', models.TextField(null=True, verbose_name='content', blank=True)), + ('content_pl', models.TextField(null=True, verbose_name='content', blank=True)), + ('content_ru', models.TextField(null=True, verbose_name='content', blank=True)), + ('content_uk', models.TextField(null=True, verbose_name='content', blank=True)), + ], + options={ + 'ordering': ('key',), + 'verbose_name': 'piece', + 'verbose_name_plural': 'pieces', + }, + bases=(models.Model,), + ), + ]