From 6c73624514839589b192df0dd26a52c13d0bac1e Mon Sep 17 00:00:00 2001 From: Robert Date: Wed, 11 Dec 2024 16:11:32 -0500 Subject: [PATCH] glamr/views: don't show private samples on map A fix for #59. --- mibios/glamr/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mibios/glamr/views.py b/mibios/glamr/views.py index 84adf32..788e96e 100644 --- a/mibios/glamr/views.py +++ b/mibios/glamr/views.py @@ -796,6 +796,7 @@ def get_map_points(self): 'collection_timestamp', 'sample_id', 'biosample', ] qs = self.get_sample_queryset() + qs = exclude_private_data(qs) qs = qs.exclude(longitude=None) qs = qs.exclude(latitude=None) qs = qs.prefetch_related('dataset', 'dataset__primary_ref')