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 *
|
||||
|
||||
|
||||
class NetworkForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = Network
|
||||
fields = ["name", "intip", "extip", "organization"]
|
||||
fields = [
|
||||
"name",
|
||||
"intip",
|
||||
"extip",
|
||||
"organization"
|
||||
]
|
||||
|
||||
|
||||
class OrgaForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = Organization
|
||||
fields = ["name", "userlimit"]
|
||||
fields = [
|
||||
"name",
|
||||
"userlimit"
|
||||
]
|
||||
|
||||
|
||||
class DeviceForm(forms.ModelForm):
|
||||
class Meta:
|
||||
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 Meta:
|
||||
model = Wifi
|
||||
fields = ["serial", "ssid", "key", "organization"]
|
||||
fields = [
|
||||
"serial",
|
||||
"ssid",
|
||||
"key",
|
||||
"organization"
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue