

@register.filter
def model_attr_verbose_name(obj, attr):
    '\n    Returns the verbose name of a model field or method.\n    '
    try:
        return utils.model_field_verbose_name(obj, obj)
    except FieldDoesNotExist:
        return utils.model_method_verbose_name(obj, attr)

dataset/ETHPy150Open pydanny/django-admin2/djadmin2/templatetags/admin2_tags.py model_attr_verbose_name/VarMisuse@30/63 `attr`->`obj`