From 6fb0eeb15717f2047760d77993b880d226dadb0a Mon Sep 17 00:00:00 2001 From: Edward Gomez Date: Tue, 9 Nov 2021 13:33:17 +0000 Subject: [PATCH] Revert "Show dataproducts on Superblock page" This reverts commit 66d53dd98ffc4c64141199d49ee37e92e812bed1. --- neoexchange/core/templates/core/block_detail.html | 7 ------- neoexchange/core/views.py | 5 ----- 2 files changed, 12 deletions(-) diff --git a/neoexchange/core/templates/core/block_detail.html b/neoexchange/core/templates/core/block_detail.html index f06ce73f0..40548ff93 100644 --- a/neoexchange/core/templates/core/block_detail.html +++ b/neoexchange/core/templates/core/block_detail.html @@ -96,13 +96,6 @@
Details of the Block
- - {% if dataproducts %} -
Data Products
- {% for dp in dataproducts%} - {{dp.get_filetype_display}}
- {% endfor %} - {% endif %}
{% if object.block_set.all%}Observation Blocks{% else%}Controls{% endif %}
{% if request.user.is_authenticated %} {% if object.active %} diff --git a/neoexchange/core/views.py b/neoexchange/core/views.py index 3ece98ee6..ef9b6b45f 100644 --- a/neoexchange/core/views.py +++ b/neoexchange/core/views.py @@ -291,11 +291,6 @@ class SuperBlockDetailView(DetailView): template_name = 'core/block_detail.html' model = SuperBlock - def get_context_data(self, *args, **kwargs): - data = super(SuperBlockDetailView, self).get_context_data(**kwargs) - blockids = self.get_object().block_set.values_list('id',flat=True) - data['dataproducts'] = DataProduct.content.filter(object_id__in=blockids).block() - return data class SuperBlockTimeline(DetailView): template_name = 'core/block_timeline.html'