title: How to auto format numbers in form field django when user input value
body: <p>I have a Decimal field in form.py like this:
  `</p>
  
  <pre><code>quantity = forms.DecimalField(required=True, widget=forms.NumberInput(
      attrs={'class': 'form-control item-quantity', 'style': 'text-align: right'}),
      error_messages={'required': 'This field is required.'}, localize=True) 
  </code></pre>
  
  <p>In html I have that:
  `</p>
  
  <pre><code>{{ formset_item.management_form }}
  {% for form in formset_item.forms %}
   &lt;tr class="gradeX"&gt;
       &lt;td&gt;{{ form.quantity }}&lt;/td&gt;
   &lt;/tr&gt;
  {% endfor %}
  </code></pre>
  
  <p>Now I want to input number in this quantity <code>input</code>. ex: When I enter input (look like key press event) 1000000 into this input intext it will auto format to 1,000,000 for user see not insert to database   </p>