feat: mgroup增加is_runing字段
This commit is contained in:
parent
13d9d6a752
commit
8b0733f1fc
|
@ -0,0 +1,18 @@
|
|||
# Generated by Django 3.2.12 on 2023-08-30 07:17
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('mtm', '0007_alter_goal_unique_together'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='mgroup',
|
||||
name='is_runing',
|
||||
field=models.BooleanField(default=True, verbose_name='是否正常运行'),
|
||||
),
|
||||
]
|
|
@ -52,12 +52,14 @@ class Team(CommonBModel):
|
|||
class Mgroup(CommonBModel):
|
||||
"""测点集
|
||||
"""
|
||||
|
||||
name = models.CharField('名称', max_length=50)
|
||||
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)
|
||||
input_materials = models.JSONField('直接材料', default=list, blank=True, help_text='material的ID列表')
|
||||
test_materials = models.JSONField('检测材料', default=list, blank=True, help_text='material的ID列表')
|
||||
sort = models.PositiveSmallIntegerField('排序', default=1)
|
||||
is_runing = models.BooleanField('是否正常运行', default=True)
|
||||
|
||||
class Meta:
|
||||
verbose_name = '测点集'
|
||||
|
|
Loading…
Reference in New Issue