0002_tabletemplate.py
1.32 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', '0014_auto_20151213_1328'),
('tables', '0001_initial'),
]
state_operations = [
migrations.CreateModel(
name='TableTemplate',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('name', models.TextField()),
('takes_gender', models.BooleanField(default=False)),
('attribute_values', models.ManyToManyField(to='dictionary.LexemeAttributeValue')),
('attributes', models.ManyToManyField(to='dictionary.LexemeAttribute')),
('cell_attributes', models.ManyToManyField(related_name='templates', to='dictionary.LexemeAttribute')),
('parts_of_speech', models.ManyToManyField(to='dictionary.PartOfSpeech')),
('pattern_types', models.ManyToManyField(to='patterns.PatternType')),
('variant', models.ForeignKey(to='tables.Variant')),
],
),
]
operations = [
migrations.SeparateDatabaseAndState(state_operations=state_operations)
]