From 12bbaacdc7c18d62e2e7716469639ef95e83a5c9 Mon Sep 17 00:00:00 2001 From: Scott Baker Date: Mon, 3 Nov 2014 15:59:52 -0800 Subject: [PATCH] a better way of url encoding the wholepagedness --- planetstack/core/dashboard/sites.py | 3 +++ planetstack/core/dashboard/views/home.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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) -- 2.43.0