fix: ftest test_group可以为空

This commit is contained in:
caoqianming 2024-02-22 09:41:56 +08:00
parent 2e0f2ec263
commit dcaf7b1ca1
2 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,18 @@
# Generated by Django 3.2.12 on 2024-02-22 01:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('qm', '0013_alter_ftestwork_count_sampling'),
]
operations = [
migrations.AlterField(
model_name='ftest',
name='test_group',
field=models.CharField(blank=True, default='', max_length=20, verbose_name='检验工序集'),
),
]

View File

@ -60,7 +60,8 @@ class Ftest(CommonBDModel):
type = models.CharField('检验类型', max_length=20, choices=FTEST_TYPE_CHOICES)
test_date = models.DateField('检验日期')
test_numer = models.CharField('检测编号', max_length=20, default='')
test_group = models.CharField('检验工序集', max_length=20, default='')
test_group = models.CharField(
'检验工序集', max_length=20, default='', blank=True)
test_user = models.ForeignKey(
User, verbose_name='操作人', on_delete=models.CASCADE, related_name='ftest_test_user')
check_user = models.ForeignKey(