From b04e2b490b5e9e48f0eea35d7b2b4d662fc1e401 Mon Sep 17 00:00:00 2001 From: Scott Baker Date: Tue, 23 Dec 2014 09:39:06 -0800 Subject: [PATCH] fix error when displaying dashboards in home view --- planetstack/core/dashboard/views/home.py | 4 ++-- planetstack/core/models/dashboard.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/planetstack/core/dashboard/views/home.py b/planetstack/core/dashboard/views/home.py index c0acfdf..7aaa9b3 100644 --- a/planetstack/core/dashboard/views/home.py +++ b/planetstack/core/dashboard/views/home.py @@ -84,11 +84,11 @@ class DashboardDynamicView(TemplateView): body = body + '
\n' % i if (view.controllers.all().count()>0): body = body + '' - for j,controllerdashboard in enumerate(view.controllerdashboards.all()): + for j,controllerdashboard in enumerate(view.controllerdashboardviews.all()): body = body + '
\n' % (i,j,i) body = body + self.embedDashboard(controllerdashboard.url); body = body + '
\n'; diff --git a/planetstack/core/models/dashboard.py b/planetstack/core/models/dashboard.py index d26ac25..828acec 100644 --- a/planetstack/core/models/dashboard.py +++ b/planetstack/core/models/dashboard.py @@ -14,8 +14,8 @@ class DashboardView(PlCoreBase): class ControllerDashboardView(PlCoreBase): objects = ControllerLinkManager() deleted_objects = ControllerLinkDeletionManager() - controller = models.ForeignKey(Controller, related_name='controllerdashboardViews') - dashboardView = models.ForeignKey(DashboardView, related_name='controllerdashboardViews') + controller = models.ForeignKey(Controller, related_name='controllerdashboardviews') + dashboardView = models.ForeignKey(DashboardView, related_name='controllerdashboardviews') url = models.CharField(max_length=1024, help_text="URL of Dashboard") -- 2.43.0