title: Implement __init__ in wtforms, Flask
body: <p>I try to create a Form in Flask with the module WTForms, the problem is that I need to create a constructor to initialize some variables that use into the Form.</p>
  
  <p>The code is the next:</p>
  
  <p>startup.py</p>
  
  <pre><code>@app.route( "/startup/new", methods=["GET"] )
  def formNewStartUp(  ):
  
       newForm = NewStartUpForm(request.form)
  
       return render_template( "platform/startup/new.html", newForm=newForm.getForm() )
  </code></pre>
  
  <p>newStartUpForm.py </p>
  
  <pre><code>class NewStartUpForm( Form ):
  
       # Constructor
       def __init__( self, *arg, **kwarg ):
           self.aCategories = StartupCategories(  )  # Another class
           self.lang = getUserLanguage( request )    # Language
  
       def getForm( self, *arg, **kwarg ):
  
           # Detail Main
           titleStartup = TextField()
           webStartup = TextField()
           groupStartUp = SelectField( 'Groups' )
           categoryStartUp = SelectField( 'Categories', choices=self.aCategories.getAllCategoriesByLang( self.lang ) )
           shortDescription = TextAreaField()
  </code></pre>
  
  <p>After initialize the Object I call to the "getForm()" function to load the Form, but when I'm in the HTML side the output is "None".</p>
  
  <p>What am I using bad?</p>