diff --git a/plinth/modules/networks/networks.py b/plinth/modules/networks/networks.py
index 3ad278083..d676033cb 100644
--- a/plinth/modules/networks/networks.py
+++ b/plinth/modules/networks/networks.py
@@ -148,8 +148,8 @@ def edit(request, uuid):
if connection.get_connection_type() == '802-3-ethernet':
network.edit_ethernet_connection(
connection, name, interface, zone, ipv4_method,
- ipv4_address, ipv4_netmask, ipv4_gateway,
- ipv4_dns, ipv4_second_dns)
+ ipv4_address, ipv4_netmask, ipv4_gateway, ipv4_dns,
+ ipv4_second_dns)
elif connection.get_connection_type() == '802-11-wireless':
ssid = form.cleaned_data['ssid']
mode = form.cleaned_data['mode']
@@ -386,8 +386,8 @@ def add_wifi(request, ssid=None, interface_name=None):
network.add_wifi_connection(
name, interface, zone, ssid, mode, auth_mode, passphrase,
- ipv4_method, ipv4_address, ipv4_netmask,
- ipv4_gateway, ipv4_dns, ipv4_second_dns)
+ ipv4_method, ipv4_address, ipv4_netmask, ipv4_gateway,
+ ipv4_dns, ipv4_second_dns)
return redirect(reverse_lazy('networks:index'))
else:
if form_data:
diff --git a/plinth/modules/networks/templates/connections_create.html b/plinth/modules/networks/templates/connections_create.html
index 759fba017..4c3f48707 100644
--- a/plinth/modules/networks/templates/connections_create.html
+++ b/plinth/modules/networks/templates/connections_create.html
@@ -43,40 +43,40 @@
diff --git a/plinth/modules/networks/templates/connections_edit.html b/plinth/modules/networks/templates/connections_edit.html
index 88cfadc17..2f5b56a51 100644
--- a/plinth/modules/networks/templates/connections_edit.html
+++ b/plinth/modules/networks/templates/connections_edit.html
@@ -43,40 +43,40 @@
diff --git a/plinth/network.py b/plinth/network.py
index a046d14ad..2f28450dd 100644
--- a/plinth/network.py
+++ b/plinth/network.py
@@ -496,8 +496,8 @@ def add_wifi_connection(name, interface, zone, ssid, mode, auth_mode,
connection_uuid = str(uuid.uuid4())
connection = _update_wifi_settings(
None, connection_uuid, name, interface, zone, ssid, mode, auth_mode,
- passphrase, ipv4_method, ipv4_address, ipv4_netmask,
- ipv4_gateway, ipv4_dns, ipv4_second_dns)
+ passphrase, ipv4_method, ipv4_address, ipv4_netmask, ipv4_gateway,
+ ipv4_dns, ipv4_second_dns)
client = nm.Client.new(None)
client.add_connection_async(connection, True, None, _callback, None)
return connection_uuid