@receiver(post_registration)<EOL>def applyVoucherCodesFinal(sender,**kwargs):
logger.debug('<STR_LIT>')<EOL>finalReg = kwargs.pop('<STR_LIT>')<EOL>tr = finalReg.temporaryRegistration<EOL>tvus = TemporaryVoucherUse.objects.filter(registration=tr)<EOL>for tvu in tvus:<EOL><INDENT>vu = VoucherUse(voucher=tvu.voucher,registration=finalReg,amount=tvu.amount)<EOL>vu.save()<EOL>if getConstant('<STR_LIT>'):<EOL><INDENT>awardReferrers(vu)<EOL><DEDENT><DEDENT>
Once a registration has been completed, vouchers are used and referrers are awarded