0004_pattern.py 1.68 KB
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('patterns', '0003_patterntype'),
        ('dictionary', '0007_auto_20151212_2218'),
    ]

    state_operations = [
        migrations.CreateModel(
            name='Pattern',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('name', models.CharField(unique=True, max_length=32, verbose_name='name', db_column=b'w_id')),
                ('old_name', models.CharField(max_length=32, null=True, verbose_name='old name')),
                ('example', models.CharField(max_length=64, verbose_name='example', db_column=b'przyklad', blank=True)),
                ('basic_form_ending', models.CharField(max_length=32, verbose_name='basic form ending', db_column=b'zakp', blank=True)),
                ('status', models.CharField(max_length=8, verbose_name='status', choices=[(b'nowy', 'new'), (b'conf', 'confirmed'), (b'cand', 'candidate')])),
                ('comment', models.TextField(verbose_name='comment', db_column=b'komentarz', blank=True)),
                ('deleted', models.BooleanField(default=False)),
                ('type', models.ForeignKey(db_column=b'typ', verbose_name='type', to='patterns.PatternType')),
            ],
            options={
                'ordering': ['name'],
                'db_table': 'wzory',
                'permissions': (('view_pattern', 'Can view patterns'),),
            },
        ),
    ]

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