More LOCs
This commit is contained in:
parent
60e58ea9f0
commit
e53e67e3e9
1 changed files with 35 additions and 4 deletions
|
@ -2,22 +2,53 @@ from django import forms
|
||||||
|
|
||||||
from .models import *
|
from .models import *
|
||||||
|
|
||||||
|
|
||||||
class NetworkForm(forms.ModelForm):
|
class NetworkForm(forms.ModelForm):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Network
|
model = Network
|
||||||
fields = ["name", "intip", "extip", "organization"]
|
fields = [
|
||||||
|
"name",
|
||||||
|
"intip",
|
||||||
|
"extip",
|
||||||
|
"organization"
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
class OrgaForm(forms.ModelForm):
|
class OrgaForm(forms.ModelForm):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Organization
|
model = Organization
|
||||||
fields = ["name", "userlimit"]
|
fields = [
|
||||||
|
"name",
|
||||||
|
"userlimit"
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
class DeviceForm(forms.ModelForm):
|
class DeviceForm(forms.ModelForm):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Device
|
model = Device
|
||||||
fields = ["serial", "secret", "password", "mac", "name", "model", "organization", "network", "ssid", "key", "wifi", "update", "reboot"]
|
fields = [
|
||||||
|
"serial",
|
||||||
|
"secret",
|
||||||
|
"password",
|
||||||
|
"mac",
|
||||||
|
"name",
|
||||||
|
"model",
|
||||||
|
"organization",
|
||||||
|
"network",
|
||||||
|
"ssid",
|
||||||
|
"key",
|
||||||
|
"wifi",
|
||||||
|
"update",
|
||||||
|
"reboot"
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
class WifiForm(forms.ModelForm):
|
class WifiForm(forms.ModelForm):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Wifi
|
model = Wifi
|
||||||
fields = ["serial", "ssid", "key", "organization"]
|
fields = [
|
||||||
|
"serial",
|
||||||
|
"ssid",
|
||||||
|
"key",
|
||||||
|
"organization"
|
||||||
|
]
|
||||||
|
|
Loading…
Reference in a new issue