(self, request)
return template.render(context)
Render the table to an HTML table, adding `request` to the context.
Render the table to an HTML table, adding `request` to the context.
Render the table to an HTML table adding request to the context .
def as_html(self, request):
        """
        Render the table to an HTML table, adding `request` to the context.
        """
        # reset counter for new rendering
        self._counter = count()
        template = get_template(self.template_name)

        context = {"table": self, "request": request}

        self.before_render(request)
        return template.render(context)
def as_html ( self , request ) : # reset counter for new rendering self . _counter = count ( ) template = get_template ( self . template_name ) context = { "table" : self , "request" : request } self . before_render ( request ) return template . render ( context )