@register.filter
def formset_visible_fieldlist(formset):
    return [f.label for f in formset.forms[0].visible_fields()]
Returns the labels of a formset's visible fields as an array.
dataset/ETHPy150Open pydanny/django-admin2/djadmin2/templatetags/admin2_tags.py/formset_visible_fieldlist