feat: material增加brothers字段

This commit is contained in:
caoqianming 2023-11-01 08:39:36 +08:00
parent bd16bef47a
commit c2a33de7f7
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,18 @@
# Generated by Django 3.2.12 on 2023-10-31 10:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mtm', '0020_material_cate'),
]
operations = [
migrations.AddField(
model_name='material',
name='brothers',
field=models.JSONField(blank=True, default=list, verbose_name='兄弟件'),
),
]

View File

@ -63,6 +63,7 @@ class Material(CommonAModel):
is_assemb = models.BooleanField('是否组合件', default=False)
need_route = models.BooleanField('是否需要定义工艺路线', default=False)
components = models.JSONField('组件', default=dict, null=False, blank=True)
brothers = models.JSONField('兄弟件', default=list, null=False, blank=True)
class Meta:
verbose_name = '物料表'