Fixed #193 -- thanks (again), steadicat

git-svn-id: http://code.djangoproject.com/svn/django/trunk@311 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2005-07-25 22:17:47 +00:00
parent a6ed088c62
commit 48441f467f
1 changed files with 1 additions and 1 deletions

View File

@ -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()