title: Django - change a field's widget in subclass of BaseInlineFormSet
body: <p>I have a form that is a subclass of BaseInlineFormSet, and for one of the fields in the related model, I like to change its widget. Here is my code for the form:</p>
  
  <pre><code>class MyForm(forms.models.BaseInlineFormSet):
      def __init__(self, *args, **kwargs):
          super(MyForm, self).__init__(*args, **kwargs)
  
          self.forms[0].error_css_class = 'error'
          self.forms[0].required_css_class = 'required'
  
      class Meta:
          model = MyModel
  
          # here I am trying.
          # recommend is an IntegerField in MyModel, which -
          # I like to make it render in the form as a Radio Select (yes, no)
          widgets = {'recommend': {forms.RadioSelect}}
  </code></pre>
  
  <p>Any help and input is appreciated</p>