Fix deleting port from port details page

This patch fixes "Delete port" button at the port details page:
Project -> Network -> Networks -> <network name> -> Ports -> <port name>

Change-Id: I84f4da9c84d75c458b54bd456cbc7b92b303ba81
Closes-Bug: #1854514
This commit is contained in:
Tatiana Ovchinnikova 2019-11-29 19:55:08 +01:00
parent 5100262298
commit 18020e30b6
1 changed files with 2 additions and 1 deletions

View File

@ -138,7 +138,8 @@ class DetailView(tabs.TabbedTableView):
]
context["custom_breadcrumb"] = breadcrumb
context["port"] = port
context["url"] = self.get_redirect_url()
context["url"] = reverse(
'horizon:project:networks:ports_tab', args=[port.network_id])
context["actions"] = table.render_row_actions(port)
return context