#NEWLINE# def has_object_permission( self , request , view , obj ) : #NEWLINE# #INDENT# assert isinstance ( request , User ) , 'obj must be a User, got {}' . format ( obj ) #NEWLINE# return ( obj == request . user )