def filer_actions(context):
 context[u'action_index'] = (context.get(u'action_index', (-1)) + 1)
 return context

def filer_actions ( context ) : context [ u'action_index' ] = ( context . get ( u'action_index' , ( - 1 ) ) + 1 ) return context
track the number of times the action field has been rendered on the page .