title: Flask-WTF SelectField with CSRF protection enabled
body: <p>I'm having a problem when submitting a form containing a dynamically populated SelectField. For some reason when Flask tries to validate the CSRF token it always fails when the SelectField is in the form. When I remove the SelectField from the form, it validates the CSRF token successfully. </p>
  
  <p>Has anyone come across this behavior? </p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Form:</p>
  
  <pre><code>class AddToReportForm(Form):
      selectReportField = SelectField(u'Reports',choices=[('test1','test')])
  
      def __init__(self, *args, **kwargs):
          """
          Initiates a new user form object
          :param args: Python default
          :param kwargs: Python default
          """
          Form.__init__(self, *args, **kwargs)
  
  
  
  
      def validate(self,id_list):
          rv = Form.validate(self)
  
          if not rv:
              print False
              #Check for the CSRF Token, if it's not there abort.
              return False
  
          print True
          return True
  </code></pre>
  
  <p>Jinja2:</p>
  
  <pre><code>&lt;form  method=post name="test"&gt;
  {{ form.hidden_tag()}}
  
  
  
  
      {{ form.selectReportField }}
      &lt;a href="#" onclick="$(this).closest('form').submit()" class="button save"&gt;Add to report&lt;/a&gt;
  
  &lt;/form&gt;
  </code></pre>
  
  <p>Rendering:</p>
  
  <pre><code>form = AddToReportForm()
  return render_template('random',title='add reports',form=form
  </code></pre>