django-widget-tweaks icon indicating copy to clipboard operation
django-widget-tweaks copied to clipboard

field_type filter is not a valid input for add_class filter

Open jossperdomo opened this issue 8 years ago • 0 comments

Hi! I try add the field_type filter as a class to a field as a follow:

{% with "{{field|field_type}}" as field_type %} {% render_field field class+="form-control {{field_type}}" required="true" %} {% endwith %}

But this way doesn't work.

Please, anyone could tell me how add this filter as a field's class?

Thanks!

PD: I'm sorry for my English!

jossperdomo avatar Dec 30 '16 01:12 jossperdomo