code: def applyVoucherCodesFinal(sender,**kwargs):
      '''
      Once a registration has been completed, vouchers are used and referrers are awarded
      '''
      logger.debug('Signal fired to mark voucher codes as applied.')
  
      finalReg = kwargs.pop('registration')
      tr = finalReg.temporaryRegistration
  
      tvus = TemporaryVoucherUse.objects.filter(registration=tr)
  
      for tvu in tvus:
          vu = VoucherUse(voucher=tvu.voucher,registration=finalReg,amount=tvu.amount)
          vu.save()
          if getConstant('referrals__enableReferralProgram'):
              awardReferrers(vuf applyVoucherCodesFinal(sender,**kwargs):
      '''
      Once a registration has been completed, vouchers are used and referrers are awarded
      '''
      logger.debug('Signal fired to mark voucher codes as applied.')
  
      finalReg = kwargs.pop('registration')
      tr = finalReg.temporaryRegistration
  
      tvus = TemporaryVoucherUse.objects.filter(registration=tr)
  
      for tvu in tvus:
          vu = VoucherUse(voucher=tvu.voucher,registration=finalReg,amount=tvu.amount)
          vu.save()
          if getConstant('referrals__enableReferralProgram'):
              awardReferrers(vu)
docs: Once a registration has been completed, vouchers are used and referrers are awarded