This commit is contained in:
halcyon
2015-10-31 09:23:10 +08:00
parent 8909386d0c
commit 46b1aca5f1
5 changed files with 43 additions and 65 deletions

14
jasset/forms.py Normal file
View File

@@ -0,0 +1,14 @@
# coding:utf-8
from django import forms
from jasset.models import IDC, Asset, AssetGroup
class AssetForm(forms.ModelForm):
class Meta:
model = Asset
fields = [
"ip", "second_ip", "hostname", "port", "group", "username", "password", "use_default_auth",
"idc", "mac", "remote_ip", "brand", "cpu", "memory", "disk", "system_type", "system_version",
"cabinet", "position", "number", "status", "asset_type", "env", "sn", "is_active", "comment"
]