committed by
Martin Trigaux
parent
e521f43256
commit
15026b8a86
@@ -29,7 +29,7 @@ class BaseLanguageImport(models.TransientModel):
|
||||
def import_lang(self):
|
||||
this = self[0]
|
||||
this = this.with_context(overwrite=this.overwrite)
|
||||
with TemporaryFile('w+b') as buf:
|
||||
with TemporaryFile('wb+') as buf:
|
||||
try:
|
||||
buf.write(base64.decodestring(this.data))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user