Replacing old mimetype with content_type in views