summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2019-05-26 10:34:38 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2019-05-27 08:00:40 (GMT)
commit1f5bc0162740da1179ac9fc78914ab8df1709304 (patch)
tree00984ce003a569ce8abca2b9b9255254ff0f39a9
parent6b7d5938fcc1446e0ace7f81ed0c71e839c391ce (diff)
downloadcombo-1f5bc0162740da1179ac9fc78914ab8df1709304.zip
combo-1f5bc0162740da1179ac9fc78914ab8df1709304.tar.gz
combo-1f5bc0162740da1179ac9fc78914ab8df1709304.tar.bz2
search: don't index pages with sub slugs (#33419)
-rw-r--r--combo/apps/search/management/commands/update_index.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/combo/apps/search/management/commands/update_index.py b/combo/apps/search/management/commands/update_index.py
index 85d3197..37eb6ff 100644
--- a/combo/apps/search/management/commands/update_index.py
+++ b/combo/apps/search/management/commands/update_index.py
@@ -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():