layerindex-web/layerindex
Paul Eggleton a0396ebec7 Handle __isnull in API query filtering
If you query on a boolean field you can use the string "False" to match
False in the database; however if you try the same with __isnull then
the query will match every record which is obviously undesirable. If
__isnull is being used, then convert the value to a boolean so that the
query works properly.

An example of this type of query:

  http://127.0.0.1:8000/layerindex/api/layerBranches/?filter=yp_compatible_version__isnull:false

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-02-05 10:58:37 +13:00
..
migrations update_layer.py: Save and show recipe dependencies 2017-12-18 09:01:29 +13:00
static Indicate if layer has YP Compatible certification 2017-09-27 15:26:24 +13:00
templatetags Support (and require) Python 3 2016-06-12 11:33:08 +12:00
tools layerconfparse.py: remove unused layerbranch from parse_layer() 2017-07-21 08:14:57 +02:00
__init__.py Initial commit of layerindex-web 2013-02-13 12:09:57 +00:00
admin.py admin: fix dependency display and search 2017-12-21 16:14:17 +13:00
bulkchange.py layerindex: Update tinfoil to call shutdown method 2017-01-11 21:56:35 +13:00
context_processors.py Use Django sites framework to specify website title 2013-12-28 11:03:29 +00:00
forms.py layerindex: add "No update" status to LayerItem 2017-03-14 15:19:53 +13:00
layerconfparse.py layerconfparse.py: remove unused layerbranch from parse_layer() 2017-07-21 08:14:57 +02:00
models.py Explicitly handle too-long field values 2018-01-09 17:13:11 +13:00
querysethelper.py Handle __isnull in API query filtering 2018-02-05 10:58:37 +13:00
recipedesc.py layerindex: Update tinfoil to call shutdown method 2017-01-11 21:56:35 +13:00
recipeparse.py Don't show "Starting bitbake server" in update log 2017-09-27 14:48:41 +13:00
restperm.py expose REST API for layerindex 2014-09-24 11:32:34 +01:00
restviews.py templates/layerindex/classes.html: Add bbclass search 2017-11-07 16:54:46 +13:00
simplesearch.py Improve recipe search 2013-02-19 17:22:45 +00:00
tasks.py Asynchronous email notifications, task execution 2017-09-01 16:59:43 +12:00
update_layer.py update_layer.py: only call init_parser when needed 2018-02-05 10:58:37 +13:00
update.py update.py: fetch repos in parallel 2018-02-05 10:58:37 +13:00
urls_branch.py templates/layerindex/classes.html: Add bbclass search 2017-11-07 16:54:46 +13:00
urls.py templates/layerindex/classes.html: Add bbclass search 2017-11-07 16:54:46 +13:00
utils.py utils.py: fix remove obsolete dependencies 2018-02-05 10:53:30 +13:00
views.py views: fix classic recipe search redirecting to recipe page with single result 2018-01-09 17:15:52 +13:00