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 website.search.models import SearchPage
|
||||||
|
|
||||||
from .feed_generators import CustomFeed
|
from .feed_generators import CustomFeed
|
||||||
from .models import BasePage
|
from .models import BaseListingPage, BasePage
|
||||||
|
|
||||||
|
|
||||||
class Error404View(TemplateView):
|
class Error404View(TemplateView):
|
||||||
|
@ -100,6 +100,7 @@ class AllPagesFeed(Feed):
|
||||||
Page.objects.live()
|
Page.objects.live()
|
||||||
.public()
|
.public()
|
||||||
.exclude(depth__lte=2)
|
.exclude(depth__lte=2)
|
||||||
|
.not_type(BaseListingPage)
|
||||||
.specific()
|
.specific()
|
||||||
.order_by("-last_published_at")
|
.order_by("-last_published_at")
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue