vpnmanager/manager/forms.py

15 lines
332 B
Python
Raw Normal View History

2019-02-02 15:01:18 +00:00
from django import forms
2019-03-16 13:25:37 +00:00
from .models import Organization, Network, Device
2019-02-02 15:01:18 +00:00
2019-03-16 13:25:37 +00:00
class NetworkForm(forms.ModelForm):
class Meta:
model = Network
fields = ["name", "intip", "extip", "organization"]
2019-03-16 13:25:37 +00:00
class OrgaForm(forms.ModelForm):
class Meta:
model = Organization
fields = ["name", "userlimit"]