uncloud/uncloud_net/forms.py

12 lines
288 B
Python
Raw Normal View History

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)
class Meta:
model = WireGuardVPN
fields = [ "wireguard_public_key" ]