Make IP address field optional for UPS host
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 5.0.6 on 2026-05-18 05:30
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('ups_manager', '0004_maintenancerecord_maintenance_type'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='upshost',
|
||||
name='ip_address',
|
||||
field=models.CharField(blank=True, max_length=50, null=True, verbose_name='IP地址'),
|
||||
),
|
||||
]
|
||||
@@ -36,7 +36,7 @@ class Supplier(models.Model):
|
||||
class UPSHost(models.Model):
|
||||
brand = models.CharField(max_length=100, verbose_name='品牌')
|
||||
model = models.CharField(max_length=100, verbose_name='型号')
|
||||
ip_address = models.CharField(max_length=50, verbose_name='IP地址')
|
||||
ip_address = models.CharField(max_length=50, blank=True, null=True, verbose_name='IP地址')
|
||||
quantity = models.IntegerField(default=1, verbose_name='数量')
|
||||
location = models.CharField(max_length=200, verbose_name='存放位置')
|
||||
last_maintenance_date = models.DateField(blank=True, null=True, verbose_name='上次维保时间')
|
||||
|
||||
Reference in New Issue
Block a user