title: How to render a text box instead of a select box when using model form set
body: <p>When I render my formset, one of the field renders as a select box because it is a foreign field in the model. Is there a way to change this to a text input? I want to populate that field by using Ajax auto complete. Adding a widget to the modelform is not working because the modelformset_factory takes a model and not a model form.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>My Model Form</p>
  
  <pre><code>class RecipeIngredientForm(ModelForm):
      class Meta:
          model = RecipeIngredient
  
          widgets = { 'ingredient' : TextInput(), }
  </code></pre>
  
  <p>I use it in my view</p>
  
  <pre><code>RecipeIngredientFormSet = modelformset_factory(RecipeIngredient, form=RecipeIngredientForm)
      objRecipeIngredients = RecipeIngredientFormSet()
  </code></pre>
  
  <p><strong>EDITED MODEL FORM</strong></p>
  
  <pre><code>class RecipeIngredientForm(ModelForm):
      ingredient2 = TextInput()
      class Meta:
          model = RecipeIngredient
  </code></pre>
  
  <p>I create the form set like this</p>
  
  <pre><code>RecipeIngredientFormSet = modelformset_factory(RecipeIngredient, form=RecipeIngredientForm)
      objRecipeIngredients = RecipeIngredientFormSet()
  </code></pre>
  
  <p><strong>QUESTION</strong></p>
  
  <p>Do I have to use the formset in html? Can I just hard code the fields that get generated and using javascript I can create new fields and increment the "form-TOTAL-FORMS"? If I can then I do not have to worry about my model form. </p>
  
  <p>Thanks</p>