mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-10-27 03:26:45 +00:00
model
This commit is contained in:
14
jasset/forms.py
Normal file
14
jasset/forms.py
Normal 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"
|
||||
]
|
||||
Reference in New Issue
Block a user