Compatibility with a django 1.6(only 1.6)