def add(self, user, status=None, symmetrical=False):
        """
        Add a relationship from one user to another with the given status,
        which defaults to "following".

        Adding a relationship is by default asymmetrical (akin to following
        someone on twitter).  Specify a symmetrical relationship (akin to being
        friends on facebook) by passing in :param:`symmetrical` = True

        .. note::

            If :param:`symmetrical` is set, the function will return a tuple
            containing the two relationship objects created
        """
        if not status:
            status = RelationshipStatus.objects.following()

        relationship, created = Relationship.objects.get_or_create(
            from_user=self.instance,
            to_user=user,
            status=status,
            site=Site.objects.get_current()
        )

        if symmetrical:
            return (relationship, user.relationships.add(self.instance, status, False))
        else:
            return relationship
def add ( self , user , status = None , symmetrical = False ) : if not status : status = RelationshipStatus . objects . following ( ) relationship , created = Relationship . objects . get_or_create ( from_user = self . instance , to_user = user , status = status , site = Site . objects . get_current ( ) ) if symmetrical : return ( relationship , user . relationships . add ( self . instance , status , False ) ) else : return relationship
Add a relationship from one user to another with the given status,
        which defaults to "following".

        Adding a relationship is by default asymmetrical (akin to following
        someone on twitter).  Specify a symmetrical relationship (akin to being
        friends on facebook) by passing in :param:`symmetrical` = True

        .. note::

            If :param:`symmetrical` is set, the function will return a tuple
            containing the two relationship objects created