From 03d7fbece8eec9bef893378764818ffcdc3d37eb Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 1 Nov 2023 10:55:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20mtm=20cate=E9=BB=98=E8=AE=A4=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA=E5=AD=97=E7=AC=A6=E4=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mtm/migrations/0022_alter_material_cate.py | 18 ++++++++++++++++++ apps/mtm/models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 apps/mtm/migrations/0022_alter_material_cate.py diff --git a/apps/mtm/migrations/0022_alter_material_cate.py b/apps/mtm/migrations/0022_alter_material_cate.py new file mode 100644 index 00000000..0be094a6 --- /dev/null +++ b/apps/mtm/migrations/0022_alter_material_cate.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.12 on 2023-11-01 02:53 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('mtm', '0021_material_brothers'), + ] + + operations = [ + migrations.AlterField( + model_name='material', + name='cate', + field=models.CharField(blank=True, default='', max_length=20, verbose_name='大类'), + ), + ] diff --git a/apps/mtm/models.py b/apps/mtm/models.py index 20f23624..5cd8b7e4 100644 --- a/apps/mtm/models.py +++ b/apps/mtm/models.py @@ -43,7 +43,7 @@ class Material(CommonAModel): ) name = models.CharField('名称', max_length=50) - cate = models.CharField('大类', max_length=20, default='') + cate = models.CharField('大类', max_length=20, default='', blank=True) number = models.CharField('编号', max_length=100, null=True, blank=True) specification = models.CharField( '型号', max_length=100, null=True, blank=True)