summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Muyshond <daniel.muyshond@gmail.com>2020-10-05 12:46:56 (GMT)
committerDaniel Muyshond <daniel.muyshond@gmail.com>2020-10-05 12:46:56 (GMT)
commitea7e0e3faa3fd617b3d9e0f4855b143f6834bb51 (patch)
tree05797bfe1f685cb6f4796b24a829e3bcddff50f2
parent9ff47a03878cccd4eaac306d9a37483c9fc16ceb (diff)
downloadpasserelle-imio-extra-fees-ea7e0e3faa3fd617b3d9e0f4855b143f6834bb51.zip
passerelle-imio-extra-fees-ea7e0e3faa3fd617b3d9e0f4855b143f6834bb51.tar.gz
passerelle-imio-extra-fees-ea7e0e3faa3fd617b3d9e0f4855b143f6834bb51.tar.bz2
[TELE-694] fix "JSON object must be str, not 'bytes'"
-rw-r--r--passerelle_imio_extra_fees/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/passerelle_imio_extra_fees/models.py b/passerelle_imio_extra_fees/models.py
index 80d3dbc..c1a61f2 100644
--- a/passerelle_imio_extra_fees/models.py
+++ b/passerelle_imio_extra_fees/models.py
@@ -58,7 +58,7 @@ class ExtraFees(BaseResource):
def default_compute(self, request, **kwargs):
nb_documents = 0
nb_letter = 0
- data = json_loads(request.body.decode('utf-8'))
+ data = json_loads(request.body)
postage_fee = Decimal(self.belgium_postage_fee)
for basket_item in data['data']:
try: