docs: def applyVoucherCodeTemporarily(sender,**kwargs):
      '''
      When the core registration system creates a temporary registration with a voucher code,
      the voucher app looks for vouchers that match that code and creates TemporaryVoucherUse
      objects to keep track of the fact that the voucher may be used.
      '''
      logger.debug('Signal fired to apply temporary vouchers.')
  
      reg = kwargs.pop('registration')
      voucherId = reg.data.get('gift','')
  
      try:
          voucher = Voucher.objects.get(voucherId=voucherId)
      except ObjectDoesNotExist:
          logger.debug('No applicable vouchers found.')
          return
  
      tvu = TemporaryVoucherUse(voucher=voucher,registration=reg,amount=0)
      tvu.save()
      logger.debug('Temporary voucher use object created.')