title: Setting default values in wtforms form
body: <p>I am developing "add member details" and "edit member details" page. For "add member details" I am using wtf form shown below ( Stripped version )</p>
  
  <pre><code>class RegisterForm(Form):
  
      name = TextField(
          'Name', 
          validators=[DataRequired(), Length(min=3, max=25)]
      )
  
      phone = TextField(
          'Phone', 
          validators=[DataRequired(),
              Length(min=10, max=10, message="Invalid phone number")],
      )
  </code></pre>
  
  <p>For edit page, idea is to inherit EditForm from RegisterForm and set default to values of name and phone. But struggling to manage inheritance. Below is what i am trying to achieve. Any help is appreciated.</p>
  
  <pre><code>class EditForm(RegisterForm):
      def __init__( not sure of args, member ):
          self.name.default = member.name
          self.phone.default = member.phone 
  </code></pre>