{"action":"created","issue":{"url":"https://api.github.com/repos/django/django/issues/7379","repository_url":"https://api.github.com/repos/django/django","labels_url":"https://api.github.com/repos/django/django/issues/7379/labels{/name}","comments_url":"https://api.github.com/repos/django/django/issues/7379/comments","events_url":"https://api.github.com/repos/django/django/issues/7379/events","html_url":"https://github.com/django/django/pull/7379","id":182693181,"number":7379,"title":"Fixed #27334 -- TemporaryUploadedFile moved to destination when possible","user":{"login":"achidlow","id":5511888,"avatar_url":"https://avatars.githubusercontent.com/u/5511888?v=3","gravatar_id":"","url":"https://api.github.com/users/achidlow","html_url":"https://github.com/achidlow","followers_url":"https://api.github.com/users/achidlow/followers","following_url":"https://api.github.com/users/achidlow/following{/other_user}","gists_url":"https://api.github.com/users/achidlow/gists{/gist_id}","starred_url":"https://api.github.com/users/achidlow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/achidlow/subscriptions","organizations_url":"https://api.github.com/users/achidlow/orgs","repos_url":"https://api.github.com/users/achidlow/repos","events_url":"https://api.github.com/users/achidlow/events{/privacy}","received_events_url":"https://api.github.com/users/achidlow/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-13T04:26:58Z","updated_at":"2016-10-14T04:17:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/django/django/pulls/7379","html_url":"https://github.com/django/django/pull/7379","diff_url":"https://github.com/django/django/pull/7379.diff","patch_url":"https://github.com/django/django/pull/7379.patch"},"body":"When a FileField is set to an instance of File that is not also an\r\ninstance of FieldFile, pre_save will pass that object as the contents to\r\nStorage.save().\r\n\r\nAs a result, when an uploaded file is written to temporary storage,\r\nif possible it will be moved (rather than copied) to the upload\r\ndestination.\r\n\r\nAll tests pass under Linux & Windows. The tests will pass without the changes to files.py on Windows however, because Windows does not support moving open files. On Linux they will fail without the changes to files.py, thus verifying that the test is actually testing something."},"comment":{"url":"https://api.github.com/repos/django/django/issues/comments/253705849","html_url":"https://github.com/django/django/pull/7379#issuecomment-253705849","issue_url":"https://api.github.com/repos/django/django/issues/7379","id":253705849,"user":{"login":"achidlow","id":5511888,"avatar_url":"https://avatars.githubusercontent.com/u/5511888?v=3","gravatar_id":"","url":"https://api.github.com/users/achidlow","html_url":"https://github.com/achidlow","followers_url":"https://api.github.com/users/achidlow/followers","following_url":"https://api.github.com/users/achidlow/following{/other_user}","gists_url":"https://api.github.com/users/achidlow/gists{/gist_id}","starred_url":"https://api.github.com/users/achidlow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/achidlow/subscriptions","organizations_url":"https://api.github.com/users/achidlow/orgs","repos_url":"https://api.github.com/users/achidlow/repos","events_url":"https://api.github.com/users/achidlow/events{/privacy}","received_events_url":"https://api.github.com/users/achidlow/received_events","type":"User","site_admin":false},"created_at":"2016-10-14T04:17:20Z","updated_at":"2016-10-14T04:17:20Z","body":"Thanks for the feedback, I've rewritten the test at the level you suggested and simplified as much as possible, and squashed the commits in my branch."}}
{"actor":{"display_login":"achidlow"}}