@register.inclusion_tag(u'admin/subnav_item.html', takes_context=True)
def admin_subnav(context, url_name, name, icon=u''):
 request = context.get(u'request')
 url = local_site_reverse(url_name, request=request)
 return RequestContext(request, {u'url': url, u'name': name, u'current': (url == request.path), u'icon': icon})

@ register . inclusion_tag ( u'admin/subnav_item.html' , takes_context = True ) def admin_subnav ( context , url_name , name , icon = u'' ) : request = context . get ( u'request' ) url = local_site_reverse ( url_name , request = request ) return RequestContext ( request , { u'url' : url , u'name' : name , u'current' : ( url == request . path ) , u'icon' : icon } )
return an <li> containing a link to the desired setting tab .