X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=planetstack%2Fcore%2Fdashboard%2Fviews%2Fview_common.py;h=e2b28a40a74c98464efb2bbfcecaed2093bd5749;hb=3ef7b219945aab273217442927d92b0ee12442a7;hp=9d979e62fde5f71626a8ac8cdbaf8cf9f9dc5115;hpb=093d2fa46db97509dcf76e7b059393ed4fc632c3;p=plstackapi.git diff --git a/planetstack/core/dashboard/views/view_common.py b/planetstack/core/dashboard/views/view_common.py index 9d979e6..e2b28a4 100644 --- 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)