From 0824deeadc61bfcaa4f9e529691410dfe7440141 Mon Sep 17 00:00:00 2001 From: zty Date: Wed, 8 May 2024 14:56:27 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20=E5=AD=97=E6=AE=B5=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../migrations/0069_alter_pt_result.py | 18 ++++++++++++++++++ server/apps/supervision/models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 server/apps/supervision/migrations/0069_alter_pt_result.py diff --git a/server/apps/supervision/migrations/0069_alter_pt_result.py b/server/apps/supervision/migrations/0069_alter_pt_result.py new file mode 100644 index 0000000..6907007 --- /dev/null +++ b/server/apps/supervision/migrations/0069_alter_pt_result.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.12 on 2024-05-08 06:55 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('supervision', '0068_alter_pt_certificate_date'), + ] + + operations = [ + migrations.AlterField( + model_name='pt', + name='result', + field=models.PositiveSmallIntegerField(choices=[(0, '未出'), (10, '满意'), (20, '有问题'), (30, '不满意')], default=0, help_text="((0, '未出'), (10, '满意'), (20, '有问题'), (30, '不满意'))", verbose_name='结果'), + ), + ] diff --git a/server/apps/supervision/models.py b/server/apps/supervision/models.py index eef3aa1..19e10c8 100644 --- a/server/apps/supervision/models.py +++ b/server/apps/supervision/models.py @@ -235,7 +235,7 @@ class Pt(CommonBDModel): """能力验证 """ pt_result_choices = ( - (0, '/'), + (0, '未出'), (10, '满意'), (20, '有问题'), (30, '不满意')