同步数据库

This commit is contained in:
caoqianming 2022-01-13 15:35:41 +08:00
parent eac13fec8f
commit bae9d3be2f
2 changed files with 19 additions and 1 deletions

View File

@ -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='摆放位置'),
),
]

View File

@ -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')