networks: Set 'auto' as default IPv6 method in new connection form

- Without selecting an option, trying to submit the form leads to an error.

Tests:

- Go to the new connection form, notice that the 'auto' method is selected by
default.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
Sunil Mohan Adapa authored and Veiko Aasa committed 2024-09-07 12:23:43 +03:00
1 parent a12a7fac22
commit 64cfdc07b8
1 file changed
+1 -1
+1 -1
View File
@@ -115,7 +115,7 @@ class ConnectionForm(forms.Form):
'connection from this network')),
('ignore', _('Ignore: Ignore this addressing method')),
('disabled', _('Disabled: Disable IPv6 for this connection')),
])
], initial='auto')
ipv6_address = forms.CharField(
label=_('Address'), validators=[validators.validate_ipv6_address],
required=False)