Fix mimetype -> content_type for Django 1.7