0002-wcs-do-not-index-card-cells-68539.patch
combo/apps/wcs/models.py | ||
---|---|---|
863 | 863 | |
864 | 864 |
manager_appearance_template = 'combo/wcs/manager/card-cell-form-appearance.html' |
865 | 865 | |
866 |
# cards will already be searchable using their respective search engines |
|
867 |
exclude_from_search = True |
|
868 | ||
866 | 869 |
class Meta: |
867 | 870 |
verbose_name = _('Card(s)') |
868 | 871 |
tests/test_search.py | ||
---|---|---|
1432 | 1432 |
assert IndexedCell.objects.count() == 50 |
1433 | 1433 |
with CaptureQueriesContext(connection) as ctx: |
1434 | 1434 |
index_site() |
1435 |
assert len(ctx.captured_queries) in (174, 224) # (3.2, 2.2)
|
|
1435 |
assert len(ctx.captured_queries) in (173, 223) # (3.2, 2.2)
|
|
1436 | 1436 | |
1437 | 1437 |
SearchCell.objects.create( |
1438 | 1438 |
page=page, placeholder='content', order=0, _search_services={'data': ['search1']} |
1439 |
- |