feat: equipment description字段可不填
This commit is contained in:
parent
c8beedbcee
commit
3ca0a3b533
|
@ -0,0 +1,18 @@
|
|||
# Generated by Django 3.2.12 on 2023-11-28 07:31
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('em', '0008_equipment_accuracy_level'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='equipment',
|
||||
name='description',
|
||||
field=models.CharField(blank=True, default='', max_length=200, verbose_name='描述'),
|
||||
),
|
||||
]
|
|
@ -62,7 +62,8 @@ class Equipment(CommonBModel):
|
|||
count = models.PositiveIntegerField('数量', default=1)
|
||||
keeper = models.ForeignKey(
|
||||
User, verbose_name='责任人', on_delete=models.CASCADE, null=True, blank=True)
|
||||
description = models.CharField('描述', max_length=200, default='', null=True)
|
||||
description = models.CharField(
|
||||
'描述', max_length=200, default='', blank=True)
|
||||
|
||||
# 以下是计量检测设备单独字段
|
||||
# mgmtype = models.IntegerField('管理类别', choices=mgmtype_choices, default=1)
|
||||
|
|
Loading…
Reference in New Issue