title: User group is not creating?
body: <p>Here I made a form for taking the group name from the user and then tried to create group name with that name entered by user but it is not giving me the expected result.It is neither throwing any error nor saving the data in the database.
  When i used <code>group_name = request.POST['name']</code> instead of <code>cleaned_data</code> it throws:</p>
  
  <pre><code>django.utils.datastructures.MultiValueDictKeyError: 'name'
  </code></pre>
  
  <p>What I am doing wrong here ?</p>
  
  <p>forms.py</p>
  
  <pre><code>class AddUserGroupForm(forms.Form):
      name = forms.CharField(max_length=255)
  </code></pre>
  
  <p>views.py</p>
  
  <pre><code>def add_user_groups(request):
      form = AddUserGroupForm()
      #group_name = request.POST['name']
      #print(group_name,'group_name')
      if form.is_valid():
          group_name = form.cleaned_data['name']
          permissions = request.POST.getlist('user_permissions')
          new_group = Group.objects.create(name=group_name)
          new_group.permissions.add(permissions)
          messages.success(request,'New group added.')
          return redirect('organization:view_groups')
      return render(request,'organization/add_user_groups.html',{'user_permissions':user_permissions,'form':form})
  </code></pre>
  
  <p>template</p>
  
  <pre><code>&lt;form action="{% url 'organization:add_user_group' %}" method="post"&gt;
                      {% csrf_token %}
      &lt;label&gt; Group Name : &lt;/label&gt;
         &lt;input type="text" class="form-control required" placeholder="Enter 
              group name" name="name"&gt;
                      &lt;label&gt;Permissions:&lt;/label&gt;
                      {% for permission in user_permissions %}
                          &lt;input name="user_permissions" type="checkbox" id="permission-{{permission.id}}"
                            value="{{permission.id}}"&gt;
                          &lt;label for="permission-{{permission.id}}"&gt; {{permission.name}}&lt;/label&gt;
  
  
                      &lt;/div&gt;
                      {% endfor %}                               
  &lt;button type="submit" class="btn btn-info"&gt;Submit&lt;/button&gt;
           &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>