From: Scott Baker Date: Mon, 3 Nov 2014 23:59:52 +0000 (-0800) Subject: a better way of url encoding the wholepagedness X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=12bbaacdc7c18d62e2e7716469639ef95e83a5c9;p=plstackapi.git a better way of url encoding the wholepagedness --- diff --git a/planetstack/core/dashboard/sites.py b/planetstack/core/dashboard/sites.py index a100117..194e805 100644 --- a/planetstack/core/dashboard/sites.py +++ b/planetstack/core/dashboard/sites.py @@ -33,6 +33,9 @@ class AdminMixin(object): name="interactions"), url(r'^dashboard/(?P\w+)/$', self.admin_view(DashboardDynamicView.as_view()), name="dashboard"), + url(r'^dashboardWholePage/(?P\w+)/$', self.admin_view(DashboardDynamicView.as_view()), + {"wholePage": True}, + name="dashboardWholePage"), url(r'^customize/$', self.admin_view(DashboardCustomize.as_view()), name="customize"), url(r'^hpcdashuserslices/', self.admin_view(DashboardUserSiteView.as_view()), diff --git a/planetstack/core/dashboard/views/home.py b/planetstack/core/dashboard/views/home.py index ac52b0b..974e3af 100644 --- a/planetstack/core/dashboard/views/home.py +++ b/planetstack/core/dashboard/views/home.py @@ -27,7 +27,7 @@ class DashboardDynamicView(TemplateView): if name=="root": return self.multiDashboardView(request, context) - elif request.GET.get("wholePage",None): + elif kwargs.get("wholePage",None): return self.singleFullView(request, name, context) else: return self.singleDashboardView(request, name, context)