@register.inclusion_tag('admin/actions.html', takes_context=True)
def admin_actions(context):
    context['action_index'] = context.get('action_index', -1) + 1
    return context
Track the number of times the action field has been rendered on the page,
dataset/ETHPy150Open django/django/django/contrib/admin/templatetags/admin_list.py/admin_actions