id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 26398,"FieldFile open() ignores the mode, always opening the file for reading",Alexey Kotlyarov,nobody,"{{{FieldFile.open}}} has a {{{mode}}} parameter, which is always ignored. This is a test from the PR: {{{ def test_filefield_write(self): # Files can be written to obj = Storage.objects.create( normal=SimpleUploadedFile(""assignment.txt"", b""content"")) with obj.normal as normal: normal.open('wb') normal.write(b""updated"") obj = Storage.objects.get() self.assertEqual(obj.normal.read(), b""updated"") }}} It fails on at least 1.8 and master with ""File not open for writing"" on {{{write()}}}. Pull request with a fix: https://github.com/django/django/pull/6325",Cleanup/optimization,closed,File uploads/storage,1.8,Normal,duplicate,,,Accepted,0,0,0,0,0,0