fixed incompatibility for django 1.4

render_to_response in django 1.3 and 1.4 accepts only mimetype arg