title: Flask edit form submit truble
body: <p>Objects</p>
  
  <pre><code>class MyObj:    
      def __init__(self, data_dict):
          self.id = ''
          self.name = ''
          self.minDescription = ''
          self.descriptions = ''
  
  class MyObjForm(Form):
      name = StringField('name')
      minDescription = StringField('minDescription')
      descriptions = TextAreaField('descriptions')
  </code></pre>
  
  <p>Routings</p>
  
  <p>This good work in "POST" and "GET" mode. Submit button have a good reactions when click.</p>
  
  <pre><code>@app.route("/create", methods=["GET", "POST"])
  @login_required
  def create():
      if request.method == 'POST':
          form = MyObjForm(request.form)
          if form.validate():
              new_obj = MyObj(request.form)
              return redirect(url_for("/"))
          else:
              return render_template('create.html', form=form)
      else:
          return render_template('create.html', form=MyObjForm())
  </code></pre>
  
  <p>When i route in "GET" mode my code is good work and view have old object data but click on submit button is not have any reactions.</p>
  
  <pre><code>@app.route("/edit/&lt;id&gt;", methods=["GET", "POST"])
  @login_required
  def edit(id):
      if request.method == 'GET':
          old_obj = d.get_by_id(id)
          form = MyObjForm(obj=old_obj)
          return render_template('create.html', form=form, id=id)
      else:
          #never entry
          pass
  </code></pre>
  
  <p>HTML 'create.html'</p>
  
  <pre><code>&lt;form method="post" role="form"&gt;
      {{ form.csrf }}
      {{ macros.render_field(form.name) }}
      {{ macros.render_field(form.minDescription) }}
      {{ macros.render_field(form.descriptions) }}
      &lt;input class="btn special" type="submit" value="Save"/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I try this:</p>
  
  <pre><code>&lt;form method="post" role="form" action="{{ url_for('edit', id=id) }}"&gt;
  </code></pre>
  
  <p>and this:</p>
  
  <pre><code>class MyObjForm(Form):    
  id = StringField()
  </code></pre>
  
  <p>any not have a progress :(</p>
  
  <p>Wath wrong?</p>