Ejemplo n.º 1
0
 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
Ejemplo n.º 2
0
 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