#NEWLINE# def perform_create( self , serializer , * args , **kwargs ) : #NEWLINE# #INDENT# if ( serializer . validated_data . get ( 'owner' ) is None ) : #NEWLINE# #INDENT# serializer . save ( owner = args . request . user ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# object_ = serializer . save ( ) #NEWLINE# object_ . email_owner ( self . request . user )