Example #1
0
 def proper_errorpage(self, url, r, e):
     messages.error(r, str(e))
     if isLedgerURL(url):
         return HttpResponseRedirect(url)
     else:
         return HttpResponseRedirect(reverse('payments:payments-error'))
Example #2
0
 def proper_errorpage(self,url,r,e):
     messages.error(r,str(e))
     if isLedgerURL(url):
         return HttpResponseRedirect(url)
     else:
         return HttpResponseRedirect(reverse('payments:payments-error'))