from django.template import Library
register = Library()


@register.filter(name='add_class')
def add_class(field, class_attr):
    return field.as_widget(attrs={'class': class_attr})

2a1013a525efb033c93a82b30e2bc4d0892fbeb1
<mask token>

<mask token>


@register.filter(name='add_class')
def add_class(field, class_attr):
    return field.as_widget(attrs={'class': class_attr})

<mask token>
register = Library()


@register.filter(name='add_class')
def add_class(field, class_attr):
    return field.as_widget(attrs={'class': class_attr})

from django.template import Library
register = Library()


@register.filter(name='add_class')
def add_class(field, class_attr):
    return field.as_widget(attrs={'class': class_attr})
