{"action":"created","issue":{"url":"https://api.github.com/repos/leancloud/python-sdk/issues/196","repository_url":"https://api.github.com/repos/leancloud/python-sdk","labels_url":"https://api.github.com/repos/leancloud/python-sdk/issues/196/labels{/name}","comments_url":"https://api.github.com/repos/leancloud/python-sdk/issues/196/comments","events_url":"https://api.github.com/repos/leancloud/python-sdk/issues/196/events","html_url":"https://github.com/leancloud/python-sdk/issues/196","id":162322652,"number":196,"title":" 可否为 Object 序列化时添加两个字段","user":{"login":"wuyazi","id":3753570,"avatar_url":"https://avatars.githubusercontent.com/u/3753570?v=3","gravatar_id":"","url":"https://api.github.com/users/wuyazi","html_url":"https://github.com/wuyazi","followers_url":"https://api.github.com/users/wuyazi/followers","following_url":"https://api.github.com/users/wuyazi/following{/other_user}","gists_url":"https://api.github.com/users/wuyazi/gists{/gist_id}","starred_url":"https://api.github.com/users/wuyazi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wuyazi/subscriptions","organizations_url":"https://api.github.com/users/wuyazi/orgs","repos_url":"https://api.github.com/users/wuyazi/repos","events_url":"https://api.github.com/users/wuyazi/events{/privacy}","received_events_url":"https://api.github.com/users/wuyazi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-06-26T10:51:03Z","updated_at":"2016-06-27T09:59:31Z","closed_at":null,"body":"leancloud/object_.py:180\r\n```\r\n        if self.created_at is not None:\r\n            obj['createdAt'] = self.created_at.strftime('%Y-%m-%d %H:%M:%S.%f')[:-3]\r\n        if self.updated_at is not None:\r\n            obj['updatedAt'] = self.updated_at.strftime('%Y-%m-%d %H:%M:%S.%f')[:-3]\r\n```\r\n另外可否在序列化时添加自定义字段"},"comment":{"url":"https://api.github.com/repos/leancloud/python-sdk/issues/comments/228703484","html_url":"https://github.com/leancloud/python-sdk/issues/196#issuecomment-228703484","issue_url":"https://api.github.com/repos/leancloud/python-sdk/issues/196","id":228703484,"user":{"login":"aisk","id":699636,"avatar_url":"https://avatars.githubusercontent.com/u/699636?v=3","gravatar_id":"","url":"https://api.github.com/users/aisk","html_url":"https://github.com/aisk","followers_url":"https://api.github.com/users/aisk/followers","following_url":"https://api.github.com/users/aisk/following{/other_user}","gists_url":"https://api.github.com/users/aisk/gists{/gist_id}","starred_url":"https://api.github.com/users/aisk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aisk/subscriptions","organizations_url":"https://api.github.com/users/aisk/orgs","repos_url":"https://api.github.com/users/aisk/repos","events_url":"https://api.github.com/users/aisk/events{/privacy}","received_events_url":"https://api.github.com/users/aisk/received_events","type":"User","site_admin":false},"created_at":"2016-06-27T09:59:31Z","updated_at":"2016-06-27T09:59:31Z","body":"如果是前后端沟通的话，可以考虑在前端引用 js sdk，这样就可以直接传递一个 leancloud.Object 对象到前端，更加方便一些。\r\n\r\n如果前端因为静态文件体积等原因不能饮用 js sdk，那最好自己写一个函数来做这件事情。"}}
{"actor":{"display_login":"aisk"}}