New colname__in=x,y,z filter, closes #433

This commit is contained in:
Simon Willison 2019-04-15 15:42:28 -07:00
commit 78e9972b46
3 changed files with 62 additions and 2 deletions

View file

@ -219,6 +219,15 @@ You can filter the data returned by the table based on column values using a que
``?column__glob=value``
Similar to LIKE but uses Unix wildcard syntax and is case sensitive.
``?column__in=value1,value2,value3``
Rows where column matches any of the provided values.
You can use a comma separated string, or you can use a JSON array.
The JSON array option is useful if one of your matching values itself contains a comma:
``?column__in=["value","value,with,commas"]``
``?column__arraycontains=value``
Works against columns that contain JSON arrays - matches if any of the values in that array match.