[Django]-Error in Django Widget tweaks 'render_field' tag requires a form field followed by a list of attributes and values in the form attr="value":

4👍

I found the answer. There is an extra space between the ‘class’ keyword and the equals sign. this is what causes the issue. when i eliminate that it resolves the issue.

instead of {% render_field field class ="form-control is-valid" %}

i just changed it to {% render_field field class="form-control is-valid" %}

Leave a comment