0003_exportcell_tablecell_tableheader.py 3.68 KB
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('patterns', '0006_auto_20151213_1153'),
        ('dictionary', '0016_auto_20151213_1400'),
        ('tables', '0002_tabletemplate'),
    ]

    state_operations = [
        migrations.CreateModel(
            name='ExportCell',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('prefix', models.CharField(max_length=20, blank=True)),
                ('suffix', models.CharField(max_length=20, blank=True)),
                ('tag_template', models.TextField()),
                ('attribute_values', models.ManyToManyField(to='dictionary.LexemeAttributeValue')),
                ('base_form_label', models.ForeignKey(to='patterns.BaseFormLabel')),
                ('genders', models.ManyToManyField(to='dictionary.Gender')),
                ('pattern_types', models.ManyToManyField(to='patterns.PatternType')),
                ('table_template', models.ForeignKey(related_name='export_cells', to='tables.TableTemplate')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='TableCell',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('prefix', models.CharField(max_length=20, blank=True)),
                ('suffix', models.CharField(max_length=20, blank=True)),
                ('qualifier', models.CharField(max_length=128, blank=True)),
                ('row', models.IntegerField()),
                ('col', models.IntegerField()),
                ('rowspan', models.IntegerField()),
                ('colspan', models.IntegerField()),
                ('index', models.IntegerField()),
                ('attribute_values', models.ManyToManyField(related_name='table_cells', to='dictionary.LexemeAttributeValue')),
                ('base_form_label', models.ForeignKey(to='patterns.BaseFormLabel')),
                ('genders', models.ManyToManyField(to='dictionary.Gender')),
                ('marked_attribute_values', models.ManyToManyField(related_name='marked_cells', to='dictionary.LexemeAttributeValue')),
                ('pattern_types', models.ManyToManyField(to='patterns.PatternType')),
                ('table_template', models.ForeignKey(related_name='table_cells', to='tables.TableTemplate')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='TableHeader',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('row', models.IntegerField()),
                ('col', models.IntegerField()),
                ('rowspan', models.IntegerField()),
                ('colspan', models.IntegerField()),
                ('label', models.CharField(max_length=64, db_column=b'nagl', blank=True)),
                ('css_class', models.CharField(max_length=8, db_column=b'styl')),
                ('attribute_values', models.ManyToManyField(to='dictionary.LexemeAttributeValue')),
                ('genders', models.ManyToManyField(to='dictionary.Gender')),
                ('pattern_types', models.ManyToManyField(to='patterns.PatternType')),
                ('table_template', models.ForeignKey(related_name='headers', to='tables.TableTemplate')),
            ],
        ),
    ]

    operations = [
        migrations.SeparateDatabaseAndState(state_operations=state_operations),
    ]