title: Generating unique names for each of the form fields in Django templates
body: <p>I have a forms something like this:</p>
  
  <pre><code>class PersonForm(forms.ModelForm):
      name=forms.CharField(label = 'Name')
      birth_date = forms.DateField(widget = SelectDateWidget(years=range(1985,2020) ),label = 'DOB')
      place = forms.CharField(label='Place')
  </code></pre>
  
  <p>Suppose I am using to this form with birth_date(date field) repeated twice in the template as follows:</p>
  
  <pre><code>{% for field in form %}
  &lt;tr&gt;
          &lt;th scope="row" class={% cycle "spec" "specalt" %}&gt; &lt;/th&gt;             
          &lt;td {% cycle '' 'class="alt"' %}&gt;
  
      {% if  field.field.datatype == 'Date' %}
  
          **Range : {{field}}   {{field}}**            
  
      {% else %}
          {{ field}}              
      {% endif %}
  </code></pre>
  
  <p>As shown above I am repeating the date field twice. However I receive the form in POST request, I am unable to differenciate between the both the date fields. How can I rename one the date fields in the template, so that I could easily differenciate in my view function.</p>
  
  <p>Note: Please do not suggest to add another field in "class PersonForm(forms.ModelForm)" as that is ruled out in the actual problem that I have. I have phrased the question according to my needs.
  Thanks in advance.</p>