Code layout change.
[wolnelektury.git] / 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 (file)
index 0000000..878e4fb
--- /dev/null
@@ -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,),
+        ),
+    ]