diff --git a/app/core/views/common.py b/app/core/views/common.py index a1350afa2..42f86c920 100644 --- a/app/core/views/common.py +++ b/app/core/views/common.py @@ -83,7 +83,11 @@ def get_context_data(self, **kwargs): context['open_tab'] = None - if self.model._meta.model_name == 'device': + if self.model._meta.model_name == 'cluster': + + external_links_query = ExternalLink.objects.filter(cluster=True) + + elif self.model._meta.model_name == 'device': external_links_query = ExternalLink.objects.filter(devices=True) diff --git a/app/itim/templates/itim/cluster.html.j2 b/app/itim/templates/itim/cluster.html.j2 index ad5415630..f04afe842 100644 --- a/app/itim/templates/itim/cluster.html.j2 +++ b/app/itim/templates/itim/cluster.html.j2 @@ -21,8 +21,8 @@
{{ item.config | json_pretty }}+
{{ cluster.config | json_pretty }}