From 64cfdc07b8938ec45622fbb3df8ccf1cdb359864 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Tue, 3 Sep 2024 14:57:06 -0700 Subject: [PATCH] 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 Reviewed-by: Veiko Aasa --- plinth/modules/networks/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plinth/modules/networks/forms.py b/plinth/modules/networks/forms.py index f8a27f0d2..7b6fa384c 100644 --- a/plinth/modules/networks/forms.py +++ b/plinth/modules/networks/forms.py @@ -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)