def get_or_create_with_social_auth(self, social_auth):
        """
        creates and saves model instance with collection of UserSocialAuth

        Raise:
            NotImplemetedError
        """
        # Type check
        self.assert_user_is_social_auth_user(social_auth)

        # Fetch the record
        try:
            social_friend_list = self.filter(user_social_auth=social_auth).get()
        except:
            # if no record found, create a new one
            friend_ids = self.fetch_social_friend_ids(social_auth)

            social_friend_list = SocialFriendList()
            social_friend_list.friend_ids = friend_ids
            social_friend_list.user_social_auth = social_auth
            social_friend_list.save()

        return social_friend_list
def get_or_create_with_social_auth ( self , social_auth ) : self . assert_user_is_social_auth_user ( social_auth ) try : social_friend_list = self . filter ( user_social_auth = social_auth ) . get ( ) except : friend_ids = self . fetch_social_friend_ids ( social_auth ) social_friend_list = SocialFriendList ( ) social_friend_list . friend_ids = friend_ids social_friend_list . user_social_auth = social_auth social_friend_list . save ( ) return social_friend_list
creates and saves model instance with collection of UserSocialAuth

        Raise:
            NotImplemetedError