Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #193 -- thanks (again), steadicat

git-svn-id: http://code.djangoproject.com/svn/django/trunk@311 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 48441f467f32fb36b20b45c88948bd19454df263 1 parent a6ed088
@jacobian jacobian authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/core/meta.py
View
2  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()

0 comments on commit 48441f4

Please sign in to comment.
Something went wrong with that request. Please try again.