Fix for Django 1.7 use content_type over removed mimetype argument