I'm working with Django forms
and widget_tweaks
, and I need to create an input that has html like this
<input type="text" name="designation{{ vente.id}}" value="{{ vente.designation }}" />
I've tried :
{% render_field modifier.designation class="form-control" value=vente.designation placeholder="désignation" name="designation"+vente.id %}
I can't get the concatenated string of name
, there is something with the concatenation.
PS: {{ vente.id}}
is an id from my database
Thank You for your help