modify cmdb models

This commit is contained in:
RobbieHan
2019-03-31 18:18:18 +08:00
parent 9216755a5b
commit 24a3f4c107
13 changed files with 163 additions and 60 deletions

View File

@@ -52,8 +52,6 @@ class DeviceCreateForm(forms.ModelForm):
exclude = ['dev_connection']
error_messages = {
'hostname': {'required': '请填写设备地址'},
'buyDate': {'required': '请填写购买日期'},
'warrantyDate': {'required': '请填写到保日期'}
}
def clean(self):