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:
parent
a6ed088c62
commit
48441f467f
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue