#NEWLINE# def create( self , validated_data ) : #NEWLINE# #INDENT# instance = self . context [ 'view' ] . get_object ( ) #NEWLINE# auth = get_user_auth ( self . context [ 'request' ] ) #NEWLINE# collection = instance [ 'self' ] #NEWLINE# ( add , remove ) = self . get_pointers_to_add_remove ( pointers = instance [ 'data' ] , new_pointers = collection [ 'data' ] ) #NEWLINE# if ( not len ( add ) ) : #NEWLINE# #INDENT# raise RelationshipPostMakesNoChanges #NEWLINE# #UNINDENT# for node in add : #NEWLINE# #INDENT# collection . add_pointer ( node , auth ) #NEWLINE# #UNINDENT# return self . make_instance_obj ( collection )