From 9d2108ce4777911f616e157f2950f6f873c3e319 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 5 Jul 2023 14:12:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20quastat=20rate=5Fpass=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E5=8F=AF=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../migrations/0004_alter_quastat_rate_pass.py | 18 ++++++++++++++++++ apps/qm/models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 apps/qm/migrations/0004_alter_quastat_rate_pass.py 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