'Returns a response, using the `response_class` for this
view, with a template rendered with the given context.
If any keyword arguments are provided, they will be
passed to the constructor of the response class.'

def render_to_response(self, context, **response_kwargs):

    response_kwargs.setdefault(u'content_type', self.content_type)
    return self.response_class(request=self.request, template=self.get_template_names(), context=context, **response_kwargs)
