change mimetype to content_type to avoid django warning