def update_blog_supernav():
 latest_entry = BlogEntry.objects.filter(feed_id=1).latest()
 rendered_box = _render_blog_supernav(latest_entry)
 box = Box.objects.get(label='supernav-python-blog')
 box.content = rendered_box
 box.save()

def update_blog_supernav ( ) : latest_entry = BlogEntry . objects . filter ( feed_id = 1 ) . latest ( ) rendered_box = _render_blog_supernav ( latest_entry ) box = Box . objects . get ( label = 'supernav-python-blog' ) box . content = rendered_box box . save ( )
retrieve latest entry and update blog supernav item .