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 2024-09-03 14:57:06 -07:00 committed by Veiko Aasa
parent a12a7fac22
commit 64cfdc07b8
No known key found for this signature in database
GPG Key ID: 478539CAE680674E

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)