vpnmanager/manager/forms.py
2019-04-21 08:09:07 +00:00

54 lines
1.1 KiB
Python

from django import forms
from .models import *
class NetworkForm(forms.ModelForm):
class Meta:
model = Network
fields = [
"name",
"intip",
"extip",
"organization"
]
class OrgaForm(forms.ModelForm):
class Meta:
model = Organization
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"
]
class WifiForm(forms.ModelForm):
class Meta:
model = Wifi
fields = [
"serial",
"ssid",
"key",
"organization"
]