?column_notcontains= table filter, closes #2287

This commit is contained in:
Simon Willison 2024-02-27 16:07:37 -08:00
commit f99c2f5f8c
3 changed files with 15 additions and 0 deletions

View file

@ -7,6 +7,11 @@ import pytest
"args,expected_where,expected_params",
[
((("name_english__contains", "foo"),), ['"name_english" like :p0'], ["%foo%"]),
(
(("name_english__notcontains", "foo"),),
['"name_english" not like :p0'],
["%foo%"],
),
(
(("foo", "bar"), ("bar__contains", "baz")),
['"bar" like :p0', '"foo" = :p1'],