Django 1.7 support. Changed from mimetype to content_type on Response object