@register.assignment_tag()
def get_newest_pep_pages(limit=5):
 latest_peps = Page.objects.filter(path__startswith='dev/peps/', is_published=True).order_by('-created')[:limit]
 return latest_peps

@ register . assignment_tag ( ) def get_newest_pep_pages ( limit = 5 ) : latest_peps = Page . objects . filter ( path__startswith = 'dev/peps/' , is_published = True ) . order_by ( '-created' ) [ : limit ] return latest_peps
retrieve the most recently added peps .