Clean imports in code

In some part in the code we import objects. In the Openstack style
guidelines they recommend to import only modules.

http://docs.openstack.org/developer/hacking/#imports

Change-Id: I77494f0ad9109a62ba46280eab9ab79b7068fa84
This commit is contained in:
Nguyen Hung Phuong 2016-09-15 13:24:27 +07:00
parent fd48c2d0e5
commit 535866b090
3 changed files with 8 additions and 8 deletions

View File

@ -13,10 +13,10 @@
# under the License.
from django.conf.urls import url
from magnum_ui.content.cluster_templates.views import IndexView
from magnum_ui.content.cluster_templates import views
urlpatterns = [
url(r'^[0-9a-f\-]{36}$', IndexView.as_view(), name='detail'),
url(r'^$', IndexView.as_view(), name='index'),
url(r'^[0-9a-f\-]{36}$', views.IndexView.as_view(), name='detail'),
url(r'^$', views.IndexView.as_view(), name='index'),
]

View File

@ -13,10 +13,10 @@
# under the License.
from django.conf.urls import url
from magnum_ui.content.clusters.views import IndexView
from magnum_ui.content.clusters import views
urlpatterns = [
url(r'^[0-9a-f\-]{36}$', IndexView.as_view(), name='detail'),
url(r'^$', IndexView.as_view(), name='index'),
url(r'^[0-9a-f\-]{36}$', views.IndexView.as_view(), name='detail'),
url(r'^$', views.IndexView.as_view(), name='index'),
]

View File

@ -18,9 +18,9 @@ import mock
from magnum_ui.api.rest import magnum
from magnum_ui.test import test_data
from openstack_dashboard.test import helpers as test
from openstack_dashboard.test.test_data.utils import TestData
from openstack_dashboard.test.test_data import utils
TEST = TestData(test_data.data)
TEST = utils.TestData(test_data.data)
class MagnumRestTestCase(test.TestCase):