search: don't index pages with sub slugs (#33419)
This commit is contained in:
parent
6b7d5938fc
commit
1f5bc01627
|
@ -46,7 +46,7 @@ class Command(UpdateIndexCommand):
|
|||
|
||||
# assemble external links data
|
||||
links = {}
|
||||
for page in Page.objects.all():
|
||||
for page in Page.objects.filter(sub_slug=''):
|
||||
if not page.is_visible(user=None):
|
||||
continue
|
||||
for cell in page.get_cells():
|
||||
|
|
Loading…
Reference in New Issue