VPN close to being done
diff --git a/xos/services/vpn/admin.py b/xos/services/vpn/admin.py
index 29329ae..38737fa 100644
--- a/xos/services/vpn/admin.py
+++ b/xos/services/vpn/admin.py
@@ -20,7 +20,7 @@
super(VPNServiceForm, self).__init__(*args, **kwargs)
if self.instance:
- self.fields['exposed_ports'].initial = self.instance.exposed_ports[self.instance.protocol]
+ self.fields['exposed_ports'].initial = self.instance.exposed_ports
def save(self, commit=True):
self.instance.exposed_ports = self.cleaned_data['exposed_ports']