converting to unicode all invoice data
This commit is contained in:
parent
7455d85db9
commit
1c084b3965
|
@ -176,6 +176,10 @@ class FactureManager(models.Manager):
|
|||
|
||||
for row in csv_reader:
|
||||
params = dict(zip(attrs, row))
|
||||
# transform all inputs to unicode
|
||||
for key, value in params.iteritems():
|
||||
params[key] = unicode(value, 'utf-8')
|
||||
|
||||
params['prelevement_automatique'] = params['prelevement_automatique'] == 'O' or False
|
||||
params['date_generation'] = datetime.strptime(params['date_generation'],
|
||||
INPUT_DATE_FORMAT)
|
||||
|
|
Reference in New Issue