title: Django: Initial Value from view
body: <p>How is possible to get initial value from the view? What parameter should I use in form?</p>
  
  <p>views.py</p>
  
  <pre><code>def cadastro_usuario(request):
      if request.method == 'POST':
          form = cadastroForm(request.POST)
          if form.is_valid():            
              new_user = form.save()
              return HttpResponseRedirect("/")
      else:
          form = cadastroForm()
      return render_to_response("registration/registration.html", {
          'form': form, 'tipo_cadastro': 'PF',})
  </code></pre>
  
  <p>forms.py</p>
  
  <pre><code>class cadastroForm(UserCreationForm):
  
      tipo_cadastro = forms.CharField(XXXXX)
  </code></pre>