0003_exportcell_tablecell_tableheader.py
3.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# -*- 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),
]