Don't index body on spotify pages

This includes API data, of which there is a lot
This commit is contained in:
Jake Howard 2022-08-25 23:52:46 +01:00
parent a4471a49ee
commit e0d17394b8
Signed by: jake
GPG Key ID: 57AFB45680EDD477

View File

@ -1,5 +1,6 @@
from datetime import timedelta
from functools import cached_property
from unittest.mock import Base
from django.core.cache import cache
from django.core.exceptions import ValidationError
@ -30,6 +31,12 @@ class SpotifyPlaylistPage(BaseContentPage):
if panel.field_name != "subtitle"
] + [FieldPanel("spotify_playlist_id")]
search_fields = [
panel
for panel in BaseContentPage.search_fields
if panel.field_name not in ["body", "subtitle"]
]
@property
def table_of_contents(self) -> list:
return []