Skip to content

Commit

Permalink
Remove search fields assignment BaseContentPage
Browse files Browse the repository at this point in the history
  • Loading branch information
ecbm committed Oct 1, 2024
1 parent f290ff2 commit 3833171
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions domestic/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
from wagtail.images import get_image_model_string
from wagtail.images.blocks import ImageChooserBlock
from wagtail.models import Page
from wagtail.search import index
from wagtail.snippets.blocks import SnippetChooserBlock

from core import blocks as core_blocks, cache_keys, helpers, mixins, service_urls
Expand Down Expand Up @@ -164,13 +163,6 @@ def get_absolute_url(self):
path = self.get_url()
return base_url + path if path else ''

search_fields = Page.search_fields + [ # Inherit search_fields from Page
index.SearchField('country_tags'),
index.SearchField('region_tags'),
index.SearchField('sector_tags'),
index.SearchField('trading_bloc_tags'),
]


class SocialLinksPageMixin(Page):
"""Abstract base class that adds social sharing links to the context
Expand Down

0 comments on commit 3833171

Please sign in to comment.