title: Django forms - dictionary and lists
body: <p>I have created a django form having following fields:</p>
  
  <pre><code>class MyForm(forms.Form):
      name = forms.CharField(required=True)
      type = forms.CharField(required=True)
      username = forms.CharField(required=True)
      password = forms.CharField(required=True)
  </code></pre>
  
  <p>Now when I do a cleaned data in my view:</p>
  
  <pre><code>form = MyForm(request.REQUEST)
  data = form.cleaned_data
  </code></pre>
  
  <p>The data is a dictionary with each of the form fields. For eg.</p>
  
  <pre><code>data = {
     "name": "ABC",
     "type": "Testing",
     "username":"abc",
     "password":"abc"
  }
  </code></pre>
  
  <p>I want that some of the fields are part of the dictionary inside the main data dictionary. For eg.</p>
  
  <pre><code>data = {
     "name": "ABC",
     "type": "Testing",
     "user": {
         "username":"abc",
         "password":"abc"
     }
  }
  </code></pre>