Get widget type of a field
Source code in hypha/core/templatetags/util_tags.py
| @register.filter(name="widget_type")
def widget_type(bound_field):
"""Get widget type of a field"""
return camelcase_to_underscore(bound_field.field.widget.__class__.__name__)
|