wcs: do not index card cells (#68539)
This commit is contained in:
parent
973a0d13cb
commit
bdf7e82f31
|
@ -863,6 +863,9 @@ class WcsCardCell(CardMixin, CellBase):
|
|||
|
||||
manager_appearance_template = 'combo/wcs/manager/card-cell-form-appearance.html'
|
||||
|
||||
# cards will already be searchable using their respective search engines
|
||||
exclude_from_search = True
|
||||
|
||||
class Meta:
|
||||
verbose_name = _('Card(s)')
|
||||
|
||||
|
|
|
@ -1432,7 +1432,7 @@ def test_index_site_num_queries(settings, app):
|
|||
assert IndexedCell.objects.count() == 50
|
||||
with CaptureQueriesContext(connection) as ctx:
|
||||
index_site()
|
||||
assert len(ctx.captured_queries) in (174, 224) # (3.2, 2.2)
|
||||
assert len(ctx.captured_queries) in (173, 223) # (3.2, 2.2)
|
||||
|
||||
SearchCell.objects.create(
|
||||
page=page, placeholder='content', order=0, _search_services={'data': ['search1']}
|
||||
|
|
Loading…
Reference in New Issue