fix readable sql filter did not work with django 1.7