@csrf_protect
@permission_required('comments.can_moderate')
def delete(request, comment_id, next=None):
 comment = get_object_or_404(comments.get_model(), pk=comment_id, site__pk=settings.SITE_ID)
 if (request.method == 'POST'):
  perform_delete(request, comment)
  return next_redirect(request, next, delete_done, c=comment.pk)
 else:
  return render_to_response('comments/delete.html', {'comment': comment, 'next': next}, template.RequestContext(request))

@ csrf_protect @ permission_required ( 'comments.can_moderate' ) def delete ( request , comment_id , next = None ) : comment = get_object_or_404 ( comments . get_model ( ) , pk = comment_id , site__pk = settings . SITE_ID ) if ( request . method == 'POST' ) : perform_delete ( request , comment ) return next_redirect ( request , next , delete_done , c = comment . pk ) else : return render_to_response ( 'comments/delete.html' , { 'comment' : comment , 'next' : next } , template . RequestContext ( request ) )
permanently delete files .