def get_context_data(self,**kwargs):
context_data = super(RegistrationSummaryView,self).get_context_data(**kwargs)<EOL>regSession = self.request.session[REG_VALIDATION_STR]<EOL>reg_id = regSession["<STR_LIT>"]<EOL>reg = TemporaryRegistration.objects.get(id=reg_id)<EOL>discount_codes = regSession.get('<STR_LIT>',None)<EOL>discount_amount = regSession.get('<STR_LIT>',<NUM_LIT:0>)<EOL>voucher_names = regSession.get('<STR_LIT>',[])<EOL>total_voucher_amount = regSession.get('<STR_LIT>',<NUM_LIT:0>)<EOL>addons = regSession.get('<STR_LIT>',[])<EOL>if reg.priceWithDiscount == <NUM_LIT:0>:<EOL><INDENT>new_invoice = Invoice.get_or_create_from_registration(reg,status=Invoice.PaymentStatus.paid)<EOL>new_invoice.processPayment(<NUM_LIT:0>,<NUM_LIT:0>,forceFinalize=True)<EOL>isFree = True<EOL><DEDENT>else:<EOL><INDENT>isFree = False<EOL><DEDENT>context_data.update({<EOL>'<STR_LIT>': reg,<EOL>"<STR_LIT>": reg.totalPrice,<EOL>'<STR_LIT>': reg.priceWithDiscount,<EOL>'<STR_LIT>': reg.addTaxes,<EOL>"<STR_LIT>": reg.priceWithDiscountAndTaxes,<EOL>"<STR_LIT>": addons,<EOL>"<STR_LIT>": discount_codes,<EOL>"<STR_LIT>": discount_amount,<EOL>"<STR_LIT>": voucher_names,<EOL>"<STR_LIT>": total_voucher_amount,<EOL>"<STR_LIT>": discount_amount + total_voucher_amount,<EOL>"<STR_LIT>": getConstant('<STR_LIT>'),<EOL>'<STR_LIT>': reg.payAtDoor,<EOL>'<STR_LIT>': isFree,<EOL>})<EOL>if self.request.user:<EOL><INDENT>door_permission = self.request.user.has_perm('<STR_LIT>')<EOL>invoice_permission = self.request.user.has_perm('<STR_LIT>')<EOL>if door_permission or invoice_permission:<EOL><INDENT>context_data['<STR_LIT>'] = DoorAmountForm(<EOL>user=self.request.user,<EOL>doorPortion=door_permission,<EOL>invoicePortion=invoice_permission,<EOL>payerEmail=reg.email,<EOL>discountAmount=max(reg.totalPrice - reg.priceWithDiscount,<NUM_LIT:0>),<EOL>)<EOL><DEDENT><DEDENT>return context_data<EOL>
Pass the initial kwargs, then update with the needed registration info.