From 48441f467f32fb36b20b45c88948bd19454df263 Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Mon, 25 Jul 2005 22:17:47 +0000 Subject: [PATCH] Fixed #193 -- thanks (again), steadicat git-svn-id: http://code.djangoproject.com/svn/django/trunk@311 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/meta.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/core/meta.py b/django/core/meta.py index 81eeee4efa5..f16a5ad20b2 100644 --- a/django/core/meta.py +++ b/django/core/meta.py @@ -976,7 +976,7 @@ def method_save_file(field, self, filename, raw_contents): # Write the file to disk. setattr(self, field.name, filename) - fp = open(getattr(self, 'get_%s_filename' % field.name)(), 'w') + fp = open(getattr(self, 'get_%s_filename' % field.name)(), 'wb') fp.write(raw_contents) fp.close()