'Render the HTML for the browsable API representation.'

def get_context(self, data, accepted_media_type, renderer_context):

    context = super(AdminRenderer, self).get_context(data, accepted_media_type, renderer_context)
    paginator = getattr(context[u'view'], u'paginator', None)
    if ((paginator is not None) and (data is not None)):
        try:
            results = paginator.get_results(data)
        except (TypeError, KeyError):
            results = data
    else:
        results = data
    if (results is None):
        header = {}
        style = u'detail'
    elif isinstance(results, list):
        header = (results[0] if results else {})
        style = u'list'
    else:
        header = results
        style = u'detail'
    columns = [key for key in header.keys() if (key != u'url')]
    details = [key for key in header.keys() if (key != u'url')]
    context[u'style'] = style
    context[u'columns'] = columns
    context[u'details'] = details
    context[u'results'] = results
    context[u'error_form'] = getattr(self, u'error_form', None)
    context[u'error_title'] = getattr(self, u'error_title', None)
    return context
