0026_auto_20191219_1544.py 1.1 KB
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('dictionary', '0025_lexemeattribute_index'),
    ]

    operations = [
        migrations.CreateModel(
            name='FreqLevel',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('level', models.PositiveIntegerField(default=0)),
                ('fname', models.CharField(max_length=128, blank=b'freq_0.png')),
                ('desc', models.ForeignKey(related_name='freqdescs', to='dictionary.MultilingualText')),
                ('desc_filter', models.ForeignKey(related_name='freqdescfilters', to='dictionary.MultilingualText')),
            ],
            options={
                'ordering': ['level'],
            },
        ),
        migrations.AddField(
            model_name='lexeme',
            name='freq',
            field=models.PositiveIntegerField(null=True, verbose_name='occurrences', blank=True),
        ),
    ]