'Render serializer data and return an HTML form, as a string.'

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

    renderer_context = (renderer_context or {})
    form = data.serializer
    style = renderer_context.get(u'style', {})
    if (u'template_pack' not in style):
        style[u'template_pack'] = self.template_pack
    style[u'renderer'] = self
    template_pack = style[u'template_pack'].strip(u'/')
    template_name = ((template_pack + u'/') + self.base_template)
    template = loader.get_template(template_name)
    context = {u'form': form, u'style': style}
    return template_render(template, context)
