Add BooleanField for persistence and subnet visibility and dynimically create configuration with server and client addresses attempt 3
diff --git a/xos/services/vpn/admin.py b/xos/services/vpn/admin.py
index 4b84299..f7e78f8 100644
--- a/xos/services/vpn/admin.py
+++ b/xos/services/vpn/admin.py
@@ -44,8 +44,8 @@
client_conf = forms.CharField(required=False, widget=forms.Textarea)
server_address = forms.GenericIPAddressField(protocol='IPv4', required=True)
client_address = forms.GenericIPAddressField(protocol='IPv4', required=True)
- is_persistent = forms.BooleanField()
- can_view_subnet = forms.BooleanField()
+ is_persistent = forms.BooleanField(required=False)
+ can_view_subnet = forms.BooleanField(required=False)
def __init__(self, *args, **kwargs):
super(VPNTenantForm, self).__init__(*args, **kwargs)