diff --git a/hb_server/apps/wpm/migrations/0048_operationwproduct_place.py b/hb_server/apps/wpm/migrations/0048_operationwproduct_place.py new file mode 100644 index 0000000..6fab08b --- /dev/null +++ b/hb_server/apps/wpm/migrations/0048_operationwproduct_place.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.9 on 2022-01-13 07:35 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('wpm', '0047_wproductflow_last_test_result'), + ] + + operations = [ + migrations.AddField( + model_name='operationwproduct', + name='place', + field=models.CharField(blank=True, max_length=200, null=True, verbose_name='摆放位置'), + ), + ] diff --git a/hb_server/apps/wpm/models.py b/hb_server/apps/wpm/models.py index fd3fe4a..4ecb946 100644 --- a/hb_server/apps/wpm/models.py +++ b/hb_server/apps/wpm/models.py @@ -211,7 +211,7 @@ class OperationWproduct(BaseModel): material = models.ForeignKey(Material, verbose_name='操作时的物料状态', on_delete=models.CASCADE) subproduction_plan = models.ForeignKey(SubProductionPlan, verbose_name='当前子生产计划', on_delete=models.CASCADE, related_name='ow_subplan') ng_sign = models.PositiveSmallIntegerField('当时的不合格标记', choices= WProduct.ng_choices, null=True, blank=True) - place = models.CharField('摆放位置', null=True, blank=True) + place = models.CharField('摆放位置', null=True, blank=True, max_length=200) class Meta: unique_together = ( ('operation','wproduct')