Fix file uploads with django 1.7.