py3: use six.text_type instead of unicode
This commit is contained in:
parent
b20d15d123
commit
8e16cf7407
|
@ -5,7 +5,9 @@ import urlparse
|
|||
import datetime
|
||||
import decimal
|
||||
import xml.etree.ElementTree as ET
|
||||
|
||||
from django.conf import settings
|
||||
from django.utils import six
|
||||
|
||||
import requests
|
||||
|
||||
|
@ -188,7 +190,7 @@ class Saga(object):
|
|||
<urlretour_synchrone>{urlretour_synchrone}</urlretour_synchrone>
|
||||
</Transaction>'''
|
||||
assert factures, u'factures ne doit pas être vide'
|
||||
id_facture = u'--'.join(unicode(facture.num) for facture in factures)
|
||||
id_facture = u'--'.join(six.text_type(facture.num) for facture in factures)
|
||||
montant = sum(facture.reste_a_payer for facture in factures)
|
||||
tree, error = self.soap_call(
|
||||
self.paiement_url, body, 'TransactionReturn',
|
||||
|
|
Loading…
Reference in New Issue