From: Loic Baron Date: Fri, 11 Oct 2013 15:26:13 +0000 (+0200) Subject: url of portal/platform/x - http://trac.myslice.info/ticket/27 X-Git-Tag: myslice-0.2-5~15 X-Git-Url: http://git.onelab.eu/?p=myslice.git;a=commitdiff_plain;h=1f6ce9338dcd613e06724e4ac2dcb0bb433209a2 url of portal/platform/x - trac.myslice.info/ticket/27 --- diff --git a/portal/sliceview.py b/portal/sliceview.py index fe95764c..7c77f1f8 100644 --- a/portal/sliceview.py +++ b/portal/sliceview.py @@ -51,8 +51,8 @@ class SliceView (LoginRequiredAutoLogoutView): main_query = Query.get('slice').filter_by('slice_hrn', '=', slicename) main_query.select( 'slice_hrn', - 'resource.resource_hrn', 'resource.hostname', 'resource.type', - #'resource.network_hrn', + 'resource.hrn', 'resource.hostname', 'resource.type', + 'resource.network_hrn', #'lease.urn', 'user.user_hrn', #'application.measurement_point.counter' diff --git a/portal/urls.py b/portal/urls.py index 6e733483..fa68d205 100644 --- a/portal/urls.py +++ b/portal/urls.py @@ -57,7 +57,7 @@ urlpatterns = patterns('', #url(r'^my_account/?$', MyAccountView.as_view(), name='my_account'), url(r'^account/?$', AccountView.as_view(), name='account'), url(r'^platforms/?$', PlatformsView.as_view(), name='platforms'), - url(r'^platform/(?P[\w\.]+)/?$', PlatformView.as_view(), name='platform'), + url(r'^platform/(?P[\w\-.]+)/?$', PlatformView.as_view(), name='platform'), url(r'^slice/?$',SliceView.as_view(),name='slice'), url(r'^slice/(?P[\w\.]+)/?$', SliceView.as_view(),name='slice'), url(r'^account/account_process/?$', account_process),