From a738880efb4c619acd1ba6524b4be6ff4a11a120 Mon Sep 17 00:00:00 2001 From: Shu Muto Date: Fri, 2 Sep 2016 16:17:51 +0900 Subject: [PATCH] Revirt removing REST API loading Since dashboard plugins are loaded from its panels at first, REST API should be loaded from panels.py or its near module. Change-Id: I88ca6935275a83969d956a8493eb1d465fd38e7d --- magnum_ui/content/clusters/panel.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/magnum_ui/content/clusters/panel.py b/magnum_ui/content/clusters/panel.py index 3bc12e89..0d97ffac 100644 --- a/magnum_ui/content/clusters/panel.py +++ b/magnum_ui/content/clusters/panel.py @@ -15,6 +15,11 @@ from django.utils.translation import ugettext_lazy as _ import horizon +# DO NOT REMOVE +# This needs for register url of REST API. +# Dashboard plugins load REST API from here. +from magnum_ui.api.rest import magnum # noqa + class Clusters(horizon.Panel): name = _("Clusters")