Check https://github.com/okfn/ckan/commit/c30f00cbdaa11adaa9f408050864fd9a6c814fa0