Skip to content

Commit

Permalink
fix(search): improve search by adding seo_titles
Browse files Browse the repository at this point in the history
why dont they add it already, it built in and suppose to help search?
  • Loading branch information
hUwUtao committed May 26, 2024
1 parent 1b9a6a4 commit 7f156c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions blog/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class BlogPage(Page):
search_fields = Page.search_fields + [
index.SearchField('intro'),
index.SearchField('body'),
index.SearchField('seo_title')
]

content_panels = Page.content_panels + [
Expand Down
1 change: 1 addition & 0 deletions gallery/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class Picture(Page):

search_fields = Page.search_fields + [
index.SearchField('cap'),
index.SearchField('seo_title'),
]

content_panels = Page.content_panels + [
Expand Down

0 comments on commit 7f156c2

Please sign in to comment.