From 1276d54972e80038525e133cc90011c143c00277 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 24 Dec 2023 22:37:18 +0000 Subject: [PATCH] Hide listing pages from feed --- website/common/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/website/common/views.py b/website/common/views.py index 891865d..fc0aa13 100644 --- a/website/common/views.py +++ b/website/common/views.py @@ -21,7 +21,7 @@ from website.home.models import HomePage from website.search.models import SearchPage from .feed_generators import CustomFeed -from .models import BasePage +from .models import BaseListingPage, BasePage class Error404View(TemplateView): @@ -100,6 +100,7 @@ class AllPagesFeed(Feed): Page.objects.live() .public() .exclude(depth__lte=2) + .not_type(BaseListingPage) .specific() .order_by("-last_published_at") )