Compatibility fixes.
[prawokultury.git] / chunks / migrations / 0001_initial.py
1 # -*- coding: utf-8 -*-
2 from __future__ import unicode_literals
3
4 from django.db import models, migrations
5 import markupfield.fields
6
7
8 class Migration(migrations.Migration):
9
10     dependencies = [
11     ]
12
13     operations = [
14         migrations.CreateModel(
15             name='Attachment',
16             fields=[
17                 ('key', models.CharField(help_text='A unique name for this attachment', max_length=255, serialize=False, verbose_name='key', primary_key=True)),
18                 ('attachment', models.FileField(upload_to=b'chunks/attachment')),
19             ],
20             options={
21                 'ordering': ('key',),
22                 'verbose_name': 'attachment',
23                 'verbose_name_plural': 'attachments',
24             },
25             bases=(models.Model,),
26         ),
27         migrations.CreateModel(
28             name='Chunk',
29             fields=[
30                 ('key', models.CharField(help_text='A unique name for this piece of content', max_length=255, serialize=False, verbose_name='key', primary_key=True)),
31                 ('description', models.CharField(max_length=255, verbose_name='description', blank=True)),
32                 ('content_pl', markupfield.fields.MarkupField(help_text='Use <a href="http://txstyle.org/">Textile</a> syntax.', rendered_field=True, verbose_name='content', blank=True)),
33                 ('content_en', markupfield.fields.MarkupField(help_text='Use <a href="http://txstyle.org/">Textile</a> syntax.', rendered_field=True, verbose_name='content', blank=True)),
34                 ('content_pl_markup_type', models.CharField(default=b'textile_pl', max_length=30, editable=False, choices=[(b'', b'--'), (b'textile_pl', b'textile_pl')])),
35                 ('content_en_markup_type', models.CharField(default=b'textile_pl', max_length=30, editable=False, choices=[(b'', b'--'), (b'textile_pl', b'textile_pl')])),
36                 ('_content_pl_rendered', models.TextField(editable=False)),
37                 ('_content_en_rendered', models.TextField(editable=False)),
38             ],
39             options={
40                 'ordering': ('key',),
41                 'verbose_name': 'piece',
42                 'verbose_name_plural': 'pieces',
43             },
44             bases=(models.Model,),
45         ),
46     ]