From 7bee55d9258c67de922c656e2428522c6f9b36da Mon Sep 17 00:00:00 2001 From: Shu Muto Date: Mon, 26 Jun 2017 17:50:24 +0900 Subject: [PATCH] Enable to refresh details view For now refreshing details view by browser using F5 key or reload button, it causes 404 error from django. This patch fixes this issue. Change-Id: I3deb51a3895ad65be6e83dac61a4a5982ac21c45 Closes-Bug: #1681627 Depends-On: I4bcffd2e222ce2df186551cceba0aa38f600d9c8 --- zun_ui/enabled/_1331_project_container_containers_panel.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/zun_ui/enabled/_1331_project_container_containers_panel.py b/zun_ui/enabled/_1331_project_container_containers_panel.py index f99d490..42d4046 100644 --- a/zun_ui/enabled/_1331_project_container_containers_panel.py +++ b/zun_ui/enabled/_1331_project_container_containers_panel.py @@ -19,3 +19,10 @@ PANEL_DASHBOARD = 'project' # Python panel class of the PANEL to be added. ADD_PANEL = 'zun_ui.content.container.containers.panel.Containers' + +# The details view to be belonged to the PANEL_DASHBOARD and PANEL. +# If the details view uses ngdetails, this setting is needed to refresh the +# details view. +ADD_DETAIL_PAGES = { + 'OS::Zun::Container': (PANEL_DASHBOARD, PANEL) +}