Support django 1.6 [skip ci]