Fix for combining ?_search_x and ?_searchmode=raw, closes #1134

This commit is contained in:
Simon Willison 2020-12-09 11:56:44 -08:00
commit 6000d1a724
2 changed files with 10 additions and 1 deletions

View file

@ -1035,6 +1035,13 @@ def test_sortable_columns_metadata(app_client):
[2, "terry dog", "sara weasel", "puma"],
],
),
(
# _searchmode=raw combined with _search_COLUMN
"/fixtures/searchable.json?_search_text2=te*&_searchmode=raw",
[
[1, "barry cat", "terry dog", "panther"],
],
),
(
"/fixtures/searchable.json?_search=weasel",
[[2, "terry dog", "sara weasel", "puma"]],