#NEWLINE# def unfriend( self , user1 , user2 ) : #NEWLINE# #INDENT# '\n        Break friendship between ``user1`` and ``user2``.\n\n        :param user1: User to unfriend with ``user2``.\n        :type user1: |User|\n        :param user2: User to unfriend with ``user1``.\n        :type user2: |User|\n        ' #NEWLINE# friendship = Friendship . objects . get ( user = self ) #NEWLINE# friendship . friends . remove ( Friendship . objects . get ( user = user2 ) ) #NEWLINE# FriendshipRequest . objects . filter ( from_user = user1 , to_user = user2 ) . delete ( ) #NEWLINE# FriendshipRequest . objects . filter ( from_user = user2 , to_user = user1 ) . delete ( )