Use either mimetype or content_type as appropriate for backwards compatibility with old versions of Django.