@register.simple_tag(takes_context=True)
def get_label(context, field, obj=None):
    view = context['view']
    return view.lookup_field_label(context, field, obj)
Responsible for figuring out the right label for the passed in field.
dataset/ETHPy150Open nyaruka/smartmin/smartmin/templatetags/smartmin.py/get_label