Add user to a group

def add_user_to_group(self, user, group_name):
        """ Add user to a group
        """
        group, _ = Group.objects.get_or_create(name = group_name)
        group.user_set.add(user)