code: def refuse_transfer(transfer, comment=None):
      '''Refuse an incoming a transfer request'''
      TransferResponsePermission(transfer).test()
  
      transfer.responded = datetime.now()
      transfer.responder = current_user._get_current_object()
      transfer.status = 'refused'
      transfer.response_comment = comment
      transfer.save()
  
      return transfef refuse_transfer(transfer, comment=None):
      '''Refuse an incoming a transfer request'''
      TransferResponsePermission(transfer).test()
  
      transfer.responded = datetime.now()
      transfer.responder = current_user._get_current_object()
      transfer.status = 'refused'
      transfer.response_comment = comment
      transfer.save()
  
      return transfer
docs: Refuse an incoming a transfer request