2020-12-13 10:38:41 +00:00
|
|
|
from django import forms
|
|
|
|
|
|
|
|
from .models import *
|
|
|
|
from .selectors import *
|
|
|
|
|
|
|
|
class WireGuardVPNForm(forms.ModelForm):
|
2020-12-13 10:43:49 +00:00
|
|
|
network_size = forms.ChoiceField(choices=allowed_vpn_network_reservation_size)
|
|
|
|
|
2020-12-13 10:38:41 +00:00
|
|
|
class Meta:
|
|
|
|
model = WireGuardVPN
|
|
|
|
|
|
|
|
fields = [ "wireguard_public_key" ]
|