(self, name)
Adds this user to the group `name` if not already in it. The group
        will be created if needed.
Adds this user to the group `name` if not already in it. The group
        will be created if needed.
Adds this user to the group name if not already in it . The group will be created if needed .
def add_group(self, name):
        """
        Adds this user to the group `name` if not already in it. The group
        will be created if needed.
        """
        if self.in_group(name):
            # We're already in this group.
            return

        self.groups.append(Group.get_or_create(name=name))
def add_group ( self , name ) : if self . in_group ( name ) : # We're already in this group. return self . groups . append ( Group . get_or_create ( name = name ) )