'Render the HTML for the browsable API representation.'

def render(self, data, accepted_media_type=None, renderer_context=None):

    self.accepted_media_type = (accepted_media_type or u'')
    self.renderer_context = (renderer_context or {})
    template = loader.get_template(self.template)
    context = self.get_context(data, accepted_media_type, renderer_context)
    ret = template_render(template, context, request=renderer_context[u'request'])
    response = renderer_context[u'response']
    if (response.status_code == status.HTTP_204_NO_CONTENT):
        response.status_code = status.HTTP_200_OK
    return ret
