From bae9d3be2fa613140d9e49a5338ea46220f31d2b Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 13 Jan 2022 15:35:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E6=95=B0=E6=8D=AE=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../migrations/0048_operationwproduct_place.py | 18 ++++++++++++++++++ hb_server/apps/wpm/models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 hb_server/apps/wpm/migrations/0048_operationwproduct_place.py 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')