'Return a response, using the `response_class` for this view, with a
template rendered with the given context.
Pass response_kwargs to the constructor of the response class.'

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

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