title: I have variable Item name ,how to pass this variable to Url?
body: <p>I have variable Item name  ,how to pass this variable to Url ?</p>
  
  <p><strong>html</strong></p>
  
  <pre><code>&lt;!-- language: lang-html --&gt;
  &lt;form action="" method="POST" &gt;
   {% csrf_token %}
  {{ field.errors }}
  &lt;p style="font-size:30px" id="t"&gt;Chose The Item&lt;/p&gt;
  {{ form.Item }}
  &lt;a href="{% url 'ItemState' name=form.Item %}"&gt;
  </code></pre>
  
  <p>Done</p>
  
  <p><strong>Form</strong></p>
  
  <pre><code> iclass ItemState1(forms.Form):
  Item = forms.ModelChoiceField(queryset=Product.objects.filter(state=1))
  </code></pre>
  
  <p><strong>Url</strong></p>
  
  <pre><code>  path('ItemState/&lt;name&gt;', ItemState, name='ItemState'),
  </code></pre>