changed mimetype to content_type

Django 1.7 compatibility