title: How do I add a "class" to a ChoiceField in Django?
body: <p>I have a <code>ChoiceField</code> in my Django Form:</p>
  
  <pre><code>gender = forms.ChoiceField(label='', choices=GENDER)
  </code></pre>
  
  <p>I'd like to add a <code>class</code> <code>attr</code> to the field so I can style it. Something like the following usually works:</p>
  
  <pre><code>forms.Field(label="Display name",help_text='',widget=forms.TextInput(attrs={'class': 'wideInput'}))
  </code></pre>
  
  <p>But this doesn't work for the ChoiceField, I get the following error:</p>
  
  <blockquote>
    <p>TypeError: <strong>init</strong>() got an unexpected keyword argument 'attrs'</p>
  </blockquote>
  
  <p>What <code>widget</code> should I use in order to add a class to my ChoiceField?</p>