title: How to assign GROUP to user from a registration form (for user) in Django?
body: <p>The problem that I face, is that I do not know how to assign a group to a user directly from a formal registration of a template (application) in Django. My user registration view is this:</p>
  
  <pre><code>def UserRegister(request):
      if request.method == 'POST':
          form = UserCreationForm(request.POST)
          if form.is_valid():
              form.save()
              return redirect('login')
      else:
          form = UserCreationForm()
      return render(request, 'register/user_register.html', {'form': form})
  </code></pre>
  
  <ul>
  <li>POSTDATA: to assign roles, I use django-role-permissions. I do not want to register a group, I just want to include it with the user who registers without having to do in the Django panel.</li>
  </ul>