diff --git a/apps/qm/migrations/0004_alter_quastat_rate_pass.py b/apps/qm/migrations/0004_alter_quastat_rate_pass.py new file mode 100644 index 00000000..af1fb939 --- /dev/null +++ b/apps/qm/migrations/0004_alter_quastat_rate_pass.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.12 on 2023-07-05 06:11 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('qm', '0003_auto_20230627_1348'), + ] + + operations = [ + migrations.AlterField( + model_name='quastat', + name='rate_pass', + field=models.FloatField(blank=True, null=True, verbose_name='合格率'), + ), + ] diff --git a/apps/qm/models.py b/apps/qm/models.py index 66acf677..e0371e4f 100644 --- a/apps/qm/models.py +++ b/apps/qm/models.py @@ -25,4 +25,4 @@ class QuaStat(CommonBDModel): val_avg = models.FloatField('平均值', null=True, blank=True) num_test = models.PositiveSmallIntegerField('检测次数', null=True, blank=True) num_ok = models.PositiveSmallIntegerField('合格次数', null=True, blank=True) - rate_pass = models.FloatField('合格率') \ No newline at end of file + rate_pass = models.FloatField('合格率', null=True, blank=True) \ No newline at end of file