# Generated by Django 3.1 on 2020-08-10 09:25
from django.conf import settings
from django.db import migrations
from django.utils import timezone

from kaf_pas.planing.operation_typesStack import NoLaunch
from kaf_pas.production.models.launches import Launches


class Migration(migrations.Migration):
    dependencies = [
        ('production', '0309_auto_20200808_1356'),
    ]

    def rec(apps, schema_editor):
        Launches.objects.update_or_create(code=NoLaunch, status=settings.PROD_OPERS_STACK.LAUNCH_NOT_RELEVANT, defaults=dict(date=timezone.now, name='Не определен'))

    operations = [
        migrations.RunPython(rec)
    ]
