Don't index body on spotify pages
This includes API data, of which there is a lot
This commit is contained in:
parent
a4471a49ee
commit
e0d17394b8
1 changed files with 7 additions and 0 deletions
|
@ -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 []
|
||||
|
|
Loading…
Reference in a new issue