#NEWLINE# def perform_create( self , serializer ) : #NEWLINE# #INDENT# 'Add user to the created object' #NEWLINE# serializer . validated_data [ 'owner' ] = self . request . user #NEWLINE# serializer . save ( )