fix: backward compatible to django 1.4