I know about the form field method is_checkbox that is used to check if a field of a given django form is a checkbox or not. Is there any method to check if the field is a textarea?
i have tried doing this:
{% if field.is_textarea %}
but this does not seem to work.
You should do something like:
The widget is responsible for the rendering, not the field it self.
Example to check it in the shell: