@register.filter(is_safe=True)
def label_with_class(value, arg):
    return value.label_tag(attrs={'class': arg})
Style adjustments
dataset/ETHPy150Open faxad/djangoCRUD/djangocrud/core/templatetags/core_tags.py/label_with_class