# Generated by Django 3.2.6 on 2021-11-17 15:32

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('mtm', '0035_auto_20211117_1637'),
        ('wpm', '0014_auto_20211117_2254'),
    ]

    operations = [
        migrations.RenameField(
            model_name='wproduct',
            old_name='m_state',
            new_name='material',
        ),
        migrations.RemoveField(
            model_name='wproduct',
            name='p_state',
        ),
        migrations.RemoveField(
            model_name='wproduct',
            name='pre_pstate',
        ),
        migrations.AddField(
            model_name='wproduct',
            name='pre_step',
            field=models.ForeignKey(blank=True, help_text='已执行完的步骤', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='w_pre_step', to='mtm.step', verbose_name='已执行到'),
        ),
        migrations.AddField(
            model_name='wproduct',
            name='step',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='w_step', to='mtm.step', verbose_name='所在步骤'),
        ),
    ]
