networks: If topology wizard is skipped, skip router wizard too

If the user chooses to skip the network topology wizard, then there is no need
to show the router configuration wizard step. Skip it.

We may want to skip other wizard step too. However, those can be dealt later.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Sunil Mohan Adapa committed 2020-03-06 14:20:03 -08:00
1 parent ba6f461ece
commit 2238352e45
1 file changed
+1
+1
View File
@@ -448,6 +448,7 @@ class NetworkTopologyFirstBootView(NetworkTopologyView):
"""Mark the first wizard step as done, save value and redirect."""
first_boot.mark_step_done('network_topology_wizard')
if 'skip' in form.data:
first_boot.mark_step_done('router_setup_wizard')
return FormView.form_valid(self, form)
return super().form_valid(form)