{% load i18n %}
{% load widget_tweaks %}
{{ attachment_formset.management_form }}
{% for form in attachment_formset.forms %}
{% for field in form.visible_fields %}
{% if forloop.first %}
{{ form.id }}
{% endif %}
{% if field.html_name in form.files.keys %}
{% for key, file in form.files.items %}
{% if key == field.html_name %}