表达式可为空

This commit is contained in:
caoqianming 2021-11-16 10:42:52 +08:00
parent fb9f37c993
commit 12f7a1e2f5
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,18 @@
# Generated by Django 3.2.6 on 2021-11-16 02:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mtm', '0032_alter_recordformfield_rule_expression'),
]
operations = [
migrations.AlterField(
model_name='recordformfield',
name='rule_expression',
field=models.TextField(blank=True, null=True, verbose_name='判定表达式'),
),
]

View File

@ -154,7 +154,7 @@ class RecordFormField(CommonAModel):
high_rule = models.IntegerField('上限规则', choices=high_rule_choices, null=True, blank=True)
low_limit = models.FloatField('下限值', null=True, blank=True)
low_rule = models.IntegerField('下限规则', choices=low_rule_choices, null=True, blank=True)
rule_expression = models.TextField('判定表达式', default='')
rule_expression = models.TextField('判定表达式', null=True, blank=True)
class Meta:
verbose_name = '记录表格字段'