summaryrefslogtreecommitdiffstats
path: root/combo/apps/lingo/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'combo/apps/lingo/views.py')
-rw-r--r--combo/apps/lingo/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/combo/apps/lingo/views.py b/combo/apps/lingo/views.py
index 80362a1..053d7c7 100644
--- a/combo/apps/lingo/views.py
+++ b/combo/apps/lingo/views.py
@@ -572,7 +572,7 @@ class CallbackView(PaymentView):
return self.handle_callback(request, request.environ['QUERY_STRING'], **kwargs)
def post(self, request, *args, **kwargs):
- return self.handle_callback(request, request.body, **kwargs)
+ return self.handle_callback(request, force_text(request.body), **kwargs)
@csrf_exempt
def dispatch(self, *args, **kwargs):
@@ -590,7 +590,7 @@ class ReturnView(PaymentView):
return self.handle_return(request, request.environ['QUERY_STRING'], **kwargs)
def post(self, request, *args, **kwargs):
- return self.handle_return(request, request.body, **kwargs)
+ return self.handle_return(request, force_text(request.body), **kwargs)
def handle_return(self, request, backend_response, **kwargs):
transaction = None