Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def item_link(self, item):
from .urls import get_entry_url
entry_url = get_entry_url(item, self.blog_page.page_ptr, self.request.site.root_page)
return self.request.build_absolute_uri(entry_url)
def entry_url(context, entry, blog_page):
return get_entry_url(entry, blog_page.page_ptr, context['request'].site.root_page)