title: Get selected text from a form using wtforms SelectField
body: <p>This is a question upon the use of <code>wtforms SelectField</code>. </p>
  
  <p>Once the form submitted, I wish to extract selected text.</p>
  
  <p>I have the following form:</p>
  
  <pre><code>from wtforms import Form, SelectField
  class TestForm(Form):
       hour = SelectField(u'Hour', choices=[('1', '8am'), ('2', '10am') ])
  </code></pre>
  
  <p>Here's the view:</p>
  
  <pre><code>@app.route('/', methods=['GET', 'POST'])
  def test_create():
  form =TestForm(request.form)
  if request.method == 'POST' and form.validate():
      test = Test()
      form.populate_obj(test)
      test.hour=form.hour.name
      db.session.add(test)
      db.session.commit()
      return redirect(url_for('test_create'))
  return render_template('test/edit.html', form=form)
  </code></pre>
  
  <p>With <code>test.hour=form.hour.name</code> I obtain the attribute <code>name</code> (no surprise...), whilst I need the text (let's say <code>8am</code> if the first option is chosen). </p>
  
  <p>How should this be possible ? Thanks for any hint.</p>