fix django 1.7 User compatibility
mimetype was renamed to content_type on django 1.7. added compatibility layer