Hide listing pages from feed
This commit is contained in:
parent
0edbd9a8e8
commit
1276d54972
1 changed files with 2 additions and 1 deletions
|
@ -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")
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue