diff --git a/openstack_dashboard/dashboards/project/network_topology/views.py b/openstack_dashboard/dashboards/project/network_topology/views.py index d4072f0797..5ec5eaf84c 100644 --- a/openstack_dashboard/dashboards/project/network_topology/views.py +++ b/openstack_dashboard/dashboards/project/network_topology/views.py @@ -46,12 +46,12 @@ from openstack_dashboard.dashboards.project.routers import\ views as r_views -class NTCreateRouterView (r_views.CreateView): +class NTCreateRouterView(r_views.CreateView): template_name = 'project/network_topology/create_router.html' success_url = reverse_lazy("horizon:project:network_topology:index") -class NTCreateNetwork (n_workflows.CreateNetwork): +class NTCreateNetwork(n_workflows.CreateNetwork): def get_success_url(self): return reverse("horizon:project:network_topology:index") @@ -59,34 +59,34 @@ class NTCreateNetwork (n_workflows.CreateNetwork): return reverse("horizon:project:network_topology:index") -class NTCreateNetworkView (n_views.CreateView): +class NTCreateNetworkView(n_views.CreateView): workflow_class = NTCreateNetwork -class NTLaunchInstance (i_workflows.LaunchInstance): +class NTLaunchInstance(i_workflows.LaunchInstance): success_url = "horizon:project:network_topology:index" -class NTLaunchInstanceView (i_views.LaunchInstanceView): +class NTLaunchInstanceView(i_views.LaunchInstanceView): workflow_class = NTLaunchInstance -class InstanceView (i_views.IndexView): +class InstanceView(i_views.IndexView): table_class = instances_tables.InstancesTable template_name = 'project/network_topology/iframe.html' -class RouterView (r_views.IndexView): +class RouterView(r_views.IndexView): table_class = routers_tables.RoutersTable template_name = 'project/network_topology/iframe.html' -class RouterDetailView (r_views.DetailView): +class RouterDetailView(r_views.DetailView): table_classes = (ports_tables.PortsTable, ) template_name = 'project/network_topology/iframe.html' -class NetworkTopologyView (TemplateView): +class NetworkTopologyView(TemplateView): template_name = 'project/network_topology/index.html'