Hide listing pages from feed

This commit is contained in:
Jake Howard 2023-12-24 22:37:18 +00:00
parent 0edbd9a8e8
commit 1276d54972
Signed by: jake
GPG Key ID: 57AFB45680EDD477
1 changed files with 2 additions and 1 deletions

View File

@ -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")
)