#NEWLINE# def delete_user_permissions( self , user , perm , obj , check_groups = False ) : #NEWLINE# #INDENT# '\n        Remove granular permission perm from user on an object instance\n        ' #NEWLINE# user_perms = self . user_permissions ( user , perm , check_groups , check_groups = False ) #NEWLINE# if ( not user_perms . filter ( object_id = obj . id ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# perms = self . user_permissions ( user , perm , obj ) . filter ( object_id = obj . id ) #NEWLINE# perms . delete ( )