Revert "remove wraps"

This reverts commit f895ddd1b56ea4e0eb070b52f5b0416dbf0429a6.
change mimetype to content_type

Django 1.7 compatibility update.