[refactor] cleaning up uncloud_net for Wireguardvpn
This commit is contained in:
parent
074cffcbd7
commit
10d5a72c5a
82 changed files with 403 additions and 2180 deletions
12
uncloud_net/forms.py
Normal file
12
uncloud_net/forms.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
from django import forms
|
||||
|
||||
from .models import *
|
||||
from .selectors import *
|
||||
|
||||
class WireGuardVPNForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = WireGuardVPN
|
||||
|
||||
network_size = forms.ChoiceField(choices=allowed_vpn_network_reservation_size)
|
||||
|
||||
fields = [ "wireguard_public_key" ]
|
||||
Loading…
Add table
Add a link
Reference in a new issue