title: Flask-WTF form populating integer fields and radio fields
body: <p>I'm trying to populate a full form under the condition that one of the field says "MATH&amp; 142". this appears to work for some fields and not others.</p>
  
  <h2>Here is the code:</h2>
  
  <pre><code>def formFill():
      @app.route('/formFill', methods=['GET', 'POST'])
      form = cifForm()
      if form.courseNum.data == 'MATH&amp; 142':
          form.courseTitle.data = 'Precalculus II : Trigonometry' 
          form.publishInCollegeCatalog.data = True #NOT WORKING - Radio Field
          form.numCredit.data = int(5)  #NOT WORKING - Integer Field
  
  class cifForm(Form):
      courseTitle = StringField('Course Title')
      publishInCollegeCatalog = RadioField('Publish in college catalog?', choices=[(True,'Yes'),(False,'No')], ) 
      numCredit = IntegerField('Credits')
      submit = SubmitField('Submit')
  </code></pre>
  
  <h2>I have tried to print out some of the values on submit and noticed something interesting about the types</h2>
  
  <pre><code>@app.route('/formFill', methods=['GET', 'POST'])
  def formFill():
       form = cifForm()
      if form.courseNum.data == 'MATH&amp; 142':
          form.courseTitle.data = 'Precalculus II : Trigonometry' 
          form.publishInCollegeCatalog.data = True# NOT WORKING
          print form.numCredit.data
          print type(form.numCredit.data)
          print form.creditIsVariable.data
          print type(form.numCredit.data)
  </code></pre>
  
  <p><strong>console:</strong></p>
  
  <pre><code>5
  &lt;type 'int'&gt;
  False
  &lt;type 'int'&gt;
  </code></pre>
  
  <h2>I also printed when I set them programmatically:</h2>
  
  <pre><code>@app.route('/formFill', methods=['GET', 'POST'])
  def formFill():
      form = cifForm()
      if form.courseNum.data == 'MATH&amp; 142':
          form.courseTitle.data = 'Precalculus II : Trigonometry' 
          form.publishInCollegeCatalog.data = True# NOT WORKING
          form.numCredit.data = int(5) 
          print form.numCredit.data
          print type(form.numCredit.data)
          form.creditIsVariable.data = bool(False) #: NOT WORKING
          print form.creditIsVariable.data
          print type(form.numCredit.data)
  </code></pre>
  
  <p><strong>console:</strong></p>
  
  <pre><code>5
  &lt;type 'int'&gt;
  False
  &lt;type 'int'&gt;
  </code></pre>
  
  <p>The output is identical, the variable assignments work, but I don't see these values in the rendered form.</p>