title: How to insert django form field attributes into HTML code?
body: <p>I am trying to put {{field.id}} in the the HTML input attributes but it doesn't work. What is the correct way to do this?</p>
  
  <pre><code>&lt;input type="text" class="form-control" id="{{field.id}}"&gt;
  </code></pre>
  
  <p>I also tried:</p>
  
  <pre><code>&lt;input type="text" class="form-control" id={{field.id}}&gt;
  </code></pre>
  
  <p>Heres my full code:</p>
  
  <pre><code>{% for field in wizard.form %}
  
  
     &lt;div class="row"&gt;
      &lt;label class="col-xs-4" for={{field.id_for_label}}&gt;{{ field.label }}&lt;/label&gt;
        &lt;div class="col-xs-2"&gt;   
  
  
         &lt;div class="form-group"&gt;
              &lt;input type="text" class="form-control" id="{{field.id}}"&gt;
              {{field.id}}
  
  
  
  
          &lt;/div&gt;
  
  
        &lt;/div&gt;
      &lt;/div&gt;
    {% endfor %}
  </code></pre>