Update views.py

Mimetype changed to content_type in django 1.7.
but, but, … that'll break on Django < 1.7, won't it?