{"action":"closed","issue":{"url":"https://api.github.com/repos/umutbozkurt/django-rest-framework-mongoengine/issues/133","repository_url":"https://api.github.com/repos/umutbozkurt/django-rest-framework-mongoengine","labels_url":"https://api.github.com/repos/umutbozkurt/django-rest-framework-mongoengine/issues/133/labels{/name}","comments_url":"https://api.github.com/repos/umutbozkurt/django-rest-framework-mongoengine/issues/133/comments","events_url":"https://api.github.com/repos/umutbozkurt/django-rest-framework-mongoengine/issues/133/events","html_url":"https://github.com/umutbozkurt/django-rest-framework-mongoengine/issues/133","id":114419379,"number":133,"title":"Support use case with new obj creation at ReferenceField","user":{"login":"qwiglydee","id":285128,"avatar_url":"https://avatars.githubusercontent.com/u/285128?v=3","gravatar_id":"","url":"https://api.github.com/users/qwiglydee","html_url":"https://github.com/qwiglydee","followers_url":"https://api.github.com/users/qwiglydee/followers","following_url":"https://api.github.com/users/qwiglydee/following{/other_user}","gists_url":"https://api.github.com/users/qwiglydee/gists{/gist_id}","starred_url":"https://api.github.com/users/qwiglydee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qwiglydee/subscriptions","organizations_url":"https://api.github.com/users/qwiglydee/orgs","repos_url":"https://api.github.com/users/qwiglydee/repos","events_url":"https://api.github.com/users/qwiglydee/events{/privacy}","received_events_url":"https://api.github.com/users/qwiglydee/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"qwiglydee","id":285128,"avatar_url":"https://avatars.githubusercontent.com/u/285128?v=3","gravatar_id":"","url":"https://api.github.com/users/qwiglydee","html_url":"https://github.com/qwiglydee","followers_url":"https://api.github.com/users/qwiglydee/followers","following_url":"https://api.github.com/users/qwiglydee/following{/other_user}","gists_url":"https://api.github.com/users/qwiglydee/gists{/gist_id}","starred_url":"https://api.github.com/users/qwiglydee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qwiglydee/subscriptions","organizations_url":"https://api.github.com/users/qwiglydee/orgs","repos_url":"https://api.github.com/users/qwiglydee/repos","events_url":"https://api.github.com/users/qwiglydee/events{/privacy}","received_events_url":"https://api.github.com/users/qwiglydee/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-10-31T16:23:14Z","updated_at":"2016-02-05T12:38:44Z","closed_at":"2016-02-05T12:38:44Z","body":"Framework should support use case: \"select an object from existent, or create new\"\r\n\r\nSerializer should support customized ReferenceField with behaviour:\r\n* rendering as id or nested object as usual, according to depth value of serializer\r\n* parsing as id or nested object, according to provided data\r\n  * id is converted to DBRef or ObjectId, according to dbref parameter of ReferenceField\r\n  * nested object is delegated to handle to `serializer.create` or `serializer.update`"}}