@register.inclusion_tag('admin/actions.html', takes_context=True)
def admin_actions(context):
 context['action_index'] = (context.get('action_index', (-1)) + 1)
 return context

@ register . inclusion_tag ( 'admin/actions.html' , takes_context = True ) def admin_actions ( context ) : context [ 'action_index' ] = ( context . get ( 'action_index' , ( - 1 ) ) + 1 ) return context
render the admin sidebar .