Projet

Général

Profil

0001-search-don-t-index-pages-with-sub-slugs-33419.patch

Frédéric Péters, 26 mai 2019 12:35

Télécharger (982 octets)

Voir les différences:

Subject: [PATCH] search: don't index pages with sub slugs (#33419)

 combo/apps/search/management/commands/update_index.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
combo/apps/search/management/commands/update_index.py
46 46

  
47 47
        # assemble external links data
48 48
        links = {}
49
        for page in Page.objects.all():
49
        for page in Page.objects.filter(sub_slug=''):
50 50
            if not page.is_visible(user=None):
51 51
                continue
52 52
            for cell in page.get_cells():
53
-