Skip to content

Commit

Permalink
Set an AutocompleteField on FullFeaturedSnippet so TestFilterSetClass…
Browse files Browse the repository at this point in the history
…Search works correctly
  • Loading branch information
gasman authored and laymonage committed Jul 19, 2023
1 parent f66cb7c commit 112fa6b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Changelog
5.2 (xx.xx.xxxx) - IN DEVELOPMENT
~~~~~~~~~~~~~~~~

* ...
* Maintenance: Fix snippet search test to work on non-fallback database backends (Matt Westcott)


5.1 (xx.xx.xxxx) - IN DEVELOPMENT
Expand Down
2 changes: 1 addition & 1 deletion docs/releases/5.2.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ depth: 1

### Maintenance

* ...
* Fix snippet search test to work on non-fallback database backends (Matt Westcott)


## Upgrade considerations
1 change: 1 addition & 0 deletions wagtail/test/testapp/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1121,6 +1121,7 @@ class CountryCode(models.TextChoices):

search_fields = [
index.SearchField("text"),
index.AutocompleteField("text"),
index.FilterField("text"),
index.FilterField("country_code"),
]
Expand Down

0 comments on commit 112fa6b

Please sign in to comment.