# Generated by Django 3.0.7 on 2020-06-20 14:30

from django.db import migrations, models


class Migration(migrations.Migration):
    dependencies = [
        ('system', '0010_auto_20200429_2245'),
    ]

    operations = [
        migrations.RemoveConstraint(
            model_name='contants',
            name='Contants_unique_constraint_0',
        ),
        migrations.RemoveConstraint(
            model_name='contants',
            name='Contants_unique_constraint_1',
        ),
        migrations.AddConstraint(
            model_name='contants',
            constraint=models.UniqueConstraint(condition=models.Q(parent=None), fields=('code', 'value'), name='Contants_unique_constraint_0'),
        ),
        migrations.AddConstraint(
            model_name='contants',
            constraint=models.UniqueConstraint(fields=('code', 'parent', 'value'), name='Contants_unique_constraint_1'),
        ),
    ]
