(self)
return template.render(RequestContext(self._request, context))
Render the page as a link.
Render the page as a link.
Render the page as a link .
def __unicode__(self):
        """Render the page as a link."""
        context = {
            'add_nofollow': settings.ADD_NOFOLLOW,
            'page': self,
            'querystring_key': self.querystring_key,
        }
        if self.is_current:
            template_name = 'endless/current_link.html'
        else:
            template_name = 'endless/page_link.html'
        template = _template_cache.setdefault(
            template_name, loader.get_template(template_name))
        return template.render(RequestContext(self._request, context))
def __unicode__ ( self ) : context = { 'add_nofollow' : settings . ADD_NOFOLLOW , 'page' : self , 'querystring_key' : self . querystring_key , } if self . is_current : template_name = 'endless/current_link.html' else : template_name = 'endless/page_link.html' template = _template_cache . setdefault ( template_name , loader . get_template ( template_name ) ) return template . render ( RequestContext ( self . _request , context ) )