def get_context_data(self, **kwargs): context = super(CashSuccessView, self).get_context_data(**kwargs) context['success'] = True context['cash'] = self.request.session.get('amount') context['error'] = get_display(1, OPERATION_CODES) return context
def get_context_data(self, **kwargs): context = super(ResultView, self).get_context_data(**kwargs) context['error'] = get_display(int(self.kwargs['code']), OPERATION_CODES) context['code'] = self.kwargs['code'] return context