mirror of
https://github.com/NaN-tic/trytond-galatea_tutorial.git
synced 2023-12-14 02:32:55 +01:00
Use bytes and bytearray for Binary
issue4637
This commit is contained in:
parent
04e79fa3ee
commit
6dd25905a2
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ class GalateaTutorial(ModelSQL, ModelView):
|
|||
value = None
|
||||
try:
|
||||
with open(filename, 'rb') as file_p:
|
||||
value = buffer(file_p.read())
|
||||
value = fields.Binary.cast(file_p.read())
|
||||
except IOError:
|
||||
pass
|
||||
return value
|
||||
|
|
Loading…
Reference in a new issue