feat: material增加brothers字段
This commit is contained in:
parent
bd16bef47a
commit
c2a33de7f7
|
@ -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='兄弟件'),
|
||||
),
|
||||
]
|
|
@ -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 = '物料表'
|
||||
|
|
Loading…
Reference in New Issue