更改数据库去除限制

This commit is contained in:
曹前明 2022-06-09 08:14:21 +08:00
parent f7a48ecfa7
commit 888185c4c0
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,18 @@
# Generated by Django 3.2.9 on 2022-06-09 00:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mtm', '0052_material_brand'),
]
operations = [
migrations.AlterField(
model_name='material',
name='unit',
field=models.CharField(default='', max_length=10, verbose_name='基准计量单位'),
),
]

View File

@ -40,7 +40,7 @@ class Material(CommonAModel):
specification = models.CharField('型号', max_length=100, null=True, blank=True)
type = models.PositiveSmallIntegerField('物料类型', choices= type_choices, default=1)
sort_str = models.CharField('排序字符', max_length=100, null=True, blank=True)
unit = models.CharField('基准计量单位', choices=unit_choices, default='', max_length=10)
unit = models.CharField('基准计量单位', default='', max_length=10)
count = models.PositiveIntegerField('物料库存总数', default=0)
count_safe = models.PositiveIntegerField('安全库存总数', null=True, blank=True)
piece_count = models.PositiveSmallIntegerField('单片玻璃数量', null=True, blank=True)