diff options
| author | Jacob Kaplan-Moss <jacob@jacobian.org> | 2005-07-25 22:17:47 +0000 |
|---|---|---|
| committer | Jacob Kaplan-Moss <jacob@jacobian.org> | 2005-07-25 22:17:47 +0000 |
| commit | 48441f467f32fb36b20b45c88948bd19454df263 (patch) | |
| tree | 610db8f8fc5a9284250eef42901d5cec1e2e602a | |
| parent | a6ed088c62cc788c25e3fa8ef88e314a89db8fce (diff) | |
Fixed #193 -- thanks (again), steadicat
git-svn-id: http://code.djangoproject.com/svn/django/trunk@311 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/core/meta.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/meta.py b/django/core/meta.py index 81eeee4efa..f16a5ad20b 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() |
