From 99935a96960306ef9b029c7491a375192242ad67 Mon Sep 17 00:00:00 2001 From: Fioddor Superconcentrado Date: Wed, 23 Dec 2020 01:01:54 +0100 Subject: [PATCH] networks: Change connection type to a radio button Close: #1821. Signed-off-by: Fioddor Superconcentrado [sunil: Correct the use of RadioSelect widget] Signed-off-by: Sunil Mohan Adapa Reviewed-by: Sunil Mohan Adapa --- 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 69eba6af9..e34ef62b5 100644 --- a/plinth/modules/networks/forms.py +++ b/plinth/modules/networks/forms.py @@ -14,7 +14,7 @@ nm = import_from_gi('NM', '1.0') class ConnectionTypeSelectForm(forms.Form): """Form to select type for new connection.""" connection_type = forms.ChoiceField( - label=_('Connection Type'), + label=_('Connection Type'), widget=forms.RadioSelect, choices=[(key, value) for key, value in network.CONNECTION_TYPE_NAMES.items()])