From 160c4ae420e3669b779e4b33c309a2894b890153 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Tue, 21 Nov 2023 10:15:31 +0100 Subject: [PATCH] Do not exclude DEMO and SHOWCASE maps anymore from home Those maps can be excluded by setting their share_status=OPEN cf #1414 --- umap/views.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/umap/views.py b/umap/views.py index 593efe92..21f9dc4d 100644 --- a/umap/views.py +++ b/umap/views.py @@ -140,8 +140,6 @@ class Home(PaginatorMixin, TemplateView, PublicMapsMixin): demo_map = Map.public.get(pk=settings.UMAP_DEMO_PK) except Map.DoesNotExist: pass - else: - maps = maps.exclude(id=demo_map.pk) showcase_map = None if hasattr(settings, "UMAP_SHOWCASE_PK"): @@ -149,8 +147,6 @@ class Home(PaginatorMixin, TemplateView, PublicMapsMixin): showcase_map = Map.public.get(pk=settings.UMAP_SHOWCASE_PK) except Map.DoesNotExist: pass - else: - maps = maps.exclude(id=showcase_map.pk) maps = self.paginate(maps, settings.UMAP_MAPS_PER_PAGE)