Skip to content

Fix Person.search_fields missing SearchField for job_title#724

Open
Pra26nav wants to merge 1 commit intowagtail:mainfrom
Pra26nav:fix/person-search-fields-job-title-v2
Open

Fix Person.search_fields missing SearchField for job_title#724
Pra26nav wants to merge 1 commit intowagtail:mainfrom
Pra26nav:fix/person-search-fields-job-title-v2

Conversation

@Pra26nav
Copy link
Copy Markdown
Contributor

Fixes #723

Description

The Person model in bakerydemo/base/models.py defined job_title as an index.FilterField but not as an index.SearchField. This caused full-text search (q=) in the Wagtail admin People snippet to return no results when searching by job title even though the filter worked correctly.

AI usage

Claude (claude.ai) was used to help with git commands only. The bug was independently discovered and the fix was written manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Person.search_fields is missing SearchField for job_title — searching by job title returns no results

1 participant