New ?column__date=yyyy-mm-dd filter

This commit is contained in:
Simon Willison 2019-04-15 15:54:54 -07:00
commit 583b22aa28
3 changed files with 12 additions and 0 deletions

View file

@ -60,6 +60,14 @@ import pytest
['foo in (:p0, :p1, :p2)'],
["1", "2", "3"]
),
# date
(
{
"foo__date": "1988-01-01",
},
["date(foo) = :p0"],
["1988-01-01"]
),
# JSON array variants of __in (useful for unexpected characters)
(
{