Support django 1.7 in tests