feat: 增加了test_material字段
This commit is contained in:
parent
46b179b6ff
commit
388d9213fd
|
@ -0,0 +1,18 @@
|
||||||
|
# Generated by Django 3.2.12 on 2023-07-04 03:29
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('mtm', '0003_mgroup_input_materials'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='mgroup',
|
||||||
|
name='test_materials',
|
||||||
|
field=models.JSONField(blank=True, default=list, help_text='material的ID列表', verbose_name='检测材料'),
|
||||||
|
),
|
||||||
|
]
|
|
@ -54,6 +54,7 @@ class Mgroup(CommonBModel):
|
||||||
cate = models.CharField('分类', max_length=50, default='section', help_text='section/other') # section是工段
|
cate = models.CharField('分类', max_length=50, default='section', help_text='section/other') # section是工段
|
||||||
product = models.ForeignKey(Material, verbose_name='主要产品', on_delete=models.SET_NULL, null=True, blank=True)
|
product = models.ForeignKey(Material, verbose_name='主要产品', on_delete=models.SET_NULL, null=True, blank=True)
|
||||||
input_materials = models.JSONField('直接材料', default=list, blank=True, help_text='material的ID列表')
|
input_materials = models.JSONField('直接材料', default=list, blank=True, help_text='material的ID列表')
|
||||||
|
test_materials = models.JSONField('检测材料', default=list, blank=True, help_text='material的ID列表')
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
verbose_name = '测点集'
|
verbose_name = '测点集'
|
||||||
|
|
Loading…
Reference in New Issue