更改数据库去除限制
This commit is contained in:
parent
f7a48ecfa7
commit
888185c4c0
|
@ -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='基准计量单位'),
|
||||
),
|
||||
]
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue