

@register.filter
def formset_visible_fieldlist(formset):
    "\n    Returns the labels of a formset's visible fields as an array.\n    "
    return [f.label for f in formset.forms[0].visible_fields()]

dataset/ETHPy150Open pydanny/django-admin2/djadmin2/templatetags/admin2_tags.py formset_visible_fieldlist/original