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


class Migration(migrations.Migration):

    dependencies = [
        ('materials', '0005_material_seed_type'),
        ('plans', '0007_ricetransplantplan_seedling_boxes_per_tan'),
    ]

    operations = [
        migrations.AddField(
            model_name='variety',
            name='seed_material',
            field=models.ForeignKey(
                blank=True,
                limit_choices_to={'material_type': 'seed'},
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                related_name='varieties',
                to='materials.material',
                verbose_name='種子在庫資材',
            ),
        ),
    ]
