git://git.onelab.eu
/
plstackapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
093d2fa
)
hide dashboard views that are disabled from customize tab
author
Scott Baker
<smbaker@gmail.com>
Mon, 19 Jan 2015 05:30:10 +0000
(21:30 -0800)
committer
Scott Baker
<smbaker@gmail.com>
Mon, 19 Jan 2015 05:30:10 +0000
(21:30 -0800)
planetstack/core/dashboard/views/view_common.py
patch
|
blob
|
history
diff --git
a/planetstack/core/dashboard/views/view_common.py
b/planetstack/core/dashboard/views/view_common.py
index
9d979e6
..
e2b28a4
100644
(file)
--- a/
planetstack/core/dashboard/views/view_common.py
+++ b/
planetstack/core/dashboard/views/view_common.py
@@
-50,6
+50,9
@@
def getDashboards(user):
unused_dashboard_names = []
for dashboardView in DashboardView.objects.all():
+ # do not show disabled dashboard views
+ if not dashboardView.enabled:
+ continue
if not dashboardView.name in dashboard_names:
unused_dashboard_names.append(dashboardView.name)