#NEWLINE# def perform_destroy( self , instance ) : #NEWLINE# #INDENT# auth = Auth ( self . request . user ) #NEWLINE# if instance . is_deleted : #NEWLINE# #INDENT# raise ValidationError ( 'Comment already deleted.' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# instance . delete ( auth , save = True ) #NEWLINE# #UNINDENT# except PermissionsError : #NEWLINE# #INDENT# raise PermissionDenied ( 'Not authorized to delete this comment.' )