More LOCs

This commit is contained in:
Kumi 2019-04-21 08:09:07 +00:00
parent 60e58ea9f0
commit e53e67e3e9

View file

@ -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"
]