Support multiple filters of the same type

Closes #288
This commit is contained in:
Simon Willison 2019-04-15 16:44:17 -07:00
commit 9c77e6e355
3 changed files with 63 additions and 43 deletions

View file

@ -903,6 +903,16 @@ def test_table_filter_queries(app_client, path, expected_rows):
assert expected_rows == response.json['rows']
def test_table_filter_queries_multiple_of_same_type(app_client):
response = app_client.get(
"/fixtures/simple_primary_key.json?content__not=world&content__not=hello"
)
assert [
['3', ''],
['4', 'RENDER_CELL_DEMO']
] == response.json['rows']
@pytest.mark.skipif(
not detect_json1(),
reason="Requires the SQLite json1 module"