0019_auto_20151216_1424.py 839 Bytes
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import os.path

from django.db import migrations, models
from django.conf import settings


class Migration(migrations.Migration):

    dependencies = [
        ('patterns', '0007_auto_20151215_1453'),
        ('dictionary', '0018_auto_20151215_1428'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='lexeme',
            name='patterns',
        ),
        migrations.RenameModel('LexemeInflectionPattern', 'Inflection'),
        migrations.AddField(
            model_name='lexeme',
            name='patterns',
            field=models.ManyToManyField(to='patterns.Pattern', through='dictionary.Inflection'),
        ),
        migrations.RunSQL(sql=open(
            os.path.join(settings.BASE_DIR, 'sql', 'history.sql')).read()),
    ]