mirror of https://github.com/jumpserver/jumpserver
14 lines
511 B
Python
14 lines
511 B
Python
# 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"
|
|
] |