

@register.filter(is_safe=True)
def label_with_class(value, arg):
    'Style adjustments'
    return value.label_tag(attrs={
        'class': arg,
    })

dataset/ETHPy150Open faxad/djangoCRUD/djangocrud/core/templatetags/core_tags.py label_with_class/original