change 'mimetype' to 'content_type' for django 1.7 compatibility