title: AttributeError: 'Request' object has no attribute 'post'
body: <p>I have been working on implementing WTForms Dynamic Fields. Linked: <a href="https://pypi.org/project/WTForms-Dynamic-Fields/" rel="nofollow noreferrer">https://pypi.org/project/WTForms-Dynamic-Fields/</a></p>
  <p>I am getting the error: <code>AttributeError: 'Request' object has no attribute 'post'</code></p>
  <p>I understand I am doing something wrong, but I am not entirely sure what, exactly.</p>
  <p>My code is:</p>
  <pre><code>@app.route(&quot;/create&quot;, methods=[&quot;POST&quot;, &quot;GET&quot;])
  @login_required
  def create():
      if request.method == &quot;POST&quot;:
          name = request.form.get('name')
          phone = request.form.get('phone')
          email = request.form.get('email')
          company = request.form.get('company')
          frequency = request.form.get('frequency')
          datefc = datetime.strptime(request.form.get('date'), &quot;%Y-%m-%d&quot;)
          adate = datetime.today()
  
          if frequency == &quot;Weekly&quot;:
              nContactTime = datefc + timedelta(days=7)
          elif frequency == &quot;Monthly&quot;:
              nContactTime = datefc + timedelta(days=30)
          elif frequency == &quot;Quarterly&quot;:
              nContactTime = datefc + timedelta(days=90)
  
          people.insert_one({&quot;name&quot;: name, &quot;phone&quot;: phone, &quot;email&quot;: email, &quot;company&quot;: company, &quot;frequency&quot;: frequency,
                             &quot;parentrecord&quot;: current_user.user_json['_id'], &quot;dateadded&quot;: adate.strftime(&quot;%x&quot;),
                             &quot;datefc&quot;: datefc, &quot;nextContact&quot;: nContactTime})
  
          flash('Your record has been entered successfully.')
          return redirect(url_for('profile'))
      elif request.method == &quot;GET&quot;:
          cfv = customfields.find({&quot;_id&quot;: current_user.user_json['_id']})
  
          dynamic = WTFormsDynamicFields()
  
  
          for value in cfv:
              print(value['fieldName'] + value['fieldType'])
              if value['fieldType'] == &quot;Text Field&quot;:
                  dynamic.add_field(value['fieldName'], value['fieldName'], StringField)
  
          form = dynamic.process(CreateRecord, request.post)
  
          return render_template('create.html', form=form, auth=current_user.is_authenticated)
  </code></pre>
  <p>My form class is:</p>
  <pre><code>class CreateRecord(FlaskForm):
      name = StringField('Name', validators=[DataRequired()])
      phone = StringField('Phone')
      email = StringField('Email')
      company = StringField('Company', validators=[DataRequired()])
      frequency = SelectField('Follow-up Frequency',
                              choices=[('Weekly', 'Weekly'), ('Monthly', 'Monthly'), ('Quarterly', 'Quarterly')])
      date = DateField('First Date To Contact', validators=[DataRequired()])
      submit = SubmitField('Create Record')
  </code></pre>
  <p>My goal is to simply have the new fields show up on the rendered page which for testing purposes I have kept the code simple at:</p>
  <pre><code>{% for field in form %}
      {{ field() }}
  {% endfor %}
  </code></pre>