Replace mimetype with content_type for Django 1.7, fixes #26