I have this form:
class ZeroIntegrationConfigForm(ModelForm):
class Meta:
model = ZeroIntegrationEntry
fields = ['tab_title', 'description', 'country', 'operations',
'locale', 'company_name']
That I generate with:
<form method="post">{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Save">
</form>
But I can't figure out / find how to assign html class to each input element generated, is the only way to do this writing the html manually for each element?
widget_tweaksand use{% render_field field_name class+='your_class' %}widgets