feat: 更改供应商部分字段可不填

This commit is contained in:
caoqianming 2024-03-29 09:44:47 +08:00
parent 356ef262de
commit 7604ee9af3
2 changed files with 31 additions and 3 deletions

View File

@ -0,0 +1,28 @@
# Generated by Django 3.2.12 on 2024-03-29 01:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pum', '0004_auto_20231201_1350'),
]
operations = [
migrations.AlterField(
model_name='supplier',
name='address',
field=models.CharField(blank=True, default='', max_length=200, verbose_name='地址'),
),
migrations.AlterField(
model_name='supplier',
name='contact',
field=models.CharField(blank=True, default='', max_length=20, verbose_name='联系人'),
),
migrations.AlterField(
model_name='supplier',
name='contact_phone',
field=models.CharField(blank=True, default='', max_length=11, verbose_name='联系电话'),
),
]

View File

@ -9,9 +9,9 @@ class Supplier(CommonBModel):
供应商
"""
name = models.CharField('供应商名称', max_length=50)
contact = models.CharField('联系人', max_length=20)
contact_phone = models.CharField('联系电话', max_length=11)
address = models.CharField('地址', max_length=200, default='')
contact = models.CharField('联系人', max_length=20, default='', blank=True)
contact_phone = models.CharField('联系电话', max_length=11, default='', blank=True)
address = models.CharField('地址', max_length=200, default='', blank=True)
class PuPlan(CommonBModel):