{"action":"closed","issue":{"url":"https://api.github.com/repos/beda-software/drf-writable-nested/issues/40","repository_url":"https://api.github.com/repos/beda-software/drf-writable-nested","labels_url":"https://api.github.com/repos/beda-software/drf-writable-nested/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/beda-software/drf-writable-nested/issues/40/comments","events_url":"https://api.github.com/repos/beda-software/drf-writable-nested/issues/40/events","html_url":"https://github.com/beda-software/drf-writable-nested/issues/40","id":319183626,"node_id":"MDU6SXNzdWUzMTkxODM2MjY=","number":40,"title":"DRFs built-in API not working, sending POST from elsewhere does","user":{"login":"julianflapper","id":24320453,"node_id":"MDQ6VXNlcjI0MzIwNDUz","avatar_url":"https://avatars0.githubusercontent.com/u/24320453?v=4","gravatar_id":"","url":"https://api.github.com/users/julianflapper","html_url":"https://github.com/julianflapper","followers_url":"https://api.github.com/users/julianflapper/followers","following_url":"https://api.github.com/users/julianflapper/following{/other_user}","gists_url":"https://api.github.com/users/julianflapper/gists{/gist_id}","starred_url":"https://api.github.com/users/julianflapper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julianflapper/subscriptions","organizations_url":"https://api.github.com/users/julianflapper/orgs","repos_url":"https://api.github.com/users/julianflapper/repos","events_url":"https://api.github.com/users/julianflapper/events{/privacy}","received_events_url":"https://api.github.com/users/julianflapper/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-01T12:16:37Z","updated_at":"2018-06-13T09:51:43Z","closed_at":"2018-06-13T09:51:43Z","author_association":"NONE","body":"Hi,\r\n\r\nJust started experimenting with drf-writable-nested and I couldn't get it to work. Very simple model, almost identical to your example in the README.md.\r\n(User and Profile, profile has OneToOne with User) \r\n\r\nI couldn't just get it to work with DRFs built-in API interface. It kept setting the profile to NULL and it was extremely frustrating. Until I found another issue here that had was also fixed by using a different client to interact with the API. So I tried that, and it worked.\r\n\r\nThe first one is the entry from the DRF API interface, and the second is from another REST client.\r\n```\r\n[\r\n    {\r\n        \"pk\": 1,\r\n        \"email\": \"john@doe.com\",\r\n        \"date_joined\": \"2018-05-01\",\r\n        \"profile\": null\r\n    },\r\n    {\r\n        \"pk\": 2,\r\n        \"email\": \"jake@doe.com\",\r\n        \"date_joined\": \"2018-05-01\",\r\n        \"profile\": {\r\n            \"pk\": 1,\r\n            \"first_name\": \"Jake\",\r\n            \"last_name\": \"Doe\"\r\n        }\r\n    }\r\n]\r\n```\r\n\r\nI do like DRFs built-in client, however. \r\nIs there anything that may cause this issue, and is there any way to solve it?\r\n\r\nEDIT:\r\nVersions\r\nPython 3.6\r\nDjango 2.0.4\r\nDRF 3.8.2\r\ndrf-writable-nested 0.4.2\r\n\r\nEDIT2:\r\nMore specifically, it seems to make the profile field NULL when sent form the HTML form window in DRF, while it does work normally when sent from the Raw data tab.\r\n"}}
{"actor":{"display_login":"julianflapper"}}