{"action":"created","issue":{"url":"https://api.github.com/repos/web2py/pydal/issues/286","labels_url":"https://api.github.com/repos/web2py/pydal/issues/286/labels{/name}","comments_url":"https://api.github.com/repos/web2py/pydal/issues/286/comments","events_url":"https://api.github.com/repos/web2py/pydal/issues/286/events","html_url":"https://github.com/web2py/pydal/issues/286","id":105573628,"number":286,"title":"<type 'exceptions.TypeError'> object_id argument must be of type ObjectId or an objectid representable integer","user":{"login":"franciscocosta","id":85894,"avatar_url":"https://avatars.githubusercontent.com/u/85894?v=3","gravatar_id":"","url":"https://api.github.com/users/franciscocosta","html_url":"https://github.com/franciscocosta","followers_url":"https://api.github.com/users/franciscocosta/followers","following_url":"https://api.github.com/users/franciscocosta/following{/other_user}","gists_url":"https://api.github.com/users/franciscocosta/gists{/gist_id}","starred_url":"https://api.github.com/users/franciscocosta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/franciscocosta/subscriptions","organizations_url":"https://api.github.com/users/franciscocosta/orgs","repos_url":"https://api.github.com/users/franciscocosta/repos","events_url":"https://api.github.com/users/franciscocosta/events{/privacy}","received_events_url":"https://api.github.com/users/franciscocosta/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/web2py/pydal/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/web2py/pydal/milestones/5","html_url":"https://github.com/web2py/pydal/milestones/15.09","labels_url":"https://api.github.com/repos/web2py/pydal/milestones/5/labels","id":1190577,"number":5,"title":"15.09","description":"","creator":{"login":"gi0baro","id":5019985,"avatar_url":"https://avatars.githubusercontent.com/u/5019985?v=3","gravatar_id":"","url":"https://api.github.com/users/gi0baro","html_url":"https://github.com/gi0baro","followers_url":"https://api.github.com/users/gi0baro/followers","following_url":"https://api.github.com/users/gi0baro/following{/other_user}","gists_url":"https://api.github.com/users/gi0baro/gists{/gist_id}","starred_url":"https://api.github.com/users/gi0baro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gi0baro/subscriptions","organizations_url":"https://api.github.com/users/gi0baro/orgs","repos_url":"https://api.github.com/users/gi0baro/repos","events_url":"https://api.github.com/users/gi0baro/events{/privacy}","received_events_url":"https://api.github.com/users/gi0baro/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":2,"state":"open","created_at":"2015-07-02T13:18:49Z","updated_at":"2015-09-20T22:34:13Z","due_on":"2015-09-18T22:00:00Z","closed_at":null},"comments":8,"created_at":"2015-09-09T10:58:02Z","updated_at":"2015-09-23T09:37:26Z","closed_at":null,"body":"In some table I have `auth.signature`\r\n\r\nWhen saving a form on `form.process().accepted`  i get the error `<type 'exceptions.TypeError'> object_id argument must be of type ObjectId or an objectid representable integer`\r\n\r\nOn https://github.com/web2py/pydal/blob/master/pydal/adapters/mongo.py on line 226 I've changed to this:\r\n\r\n            elif fieldtype.startswith(\"reference\") or fieldtype == \"id\":\r\n                #value = self.object_id(obj)\r\n                value = self.object_id(NoSQLAdapter.represent(self, obj, fieldtype))\r\n\r\nand it seams to work well\r\n"},"comment":{"url":"https://api.github.com/repos/web2py/pydal/issues/comments/142546054","html_url":"https://github.com/web2py/pydal/issues/286#issuecomment-142546054","issue_url":"https://api.github.com/repos/web2py/pydal/issues/286","id":142546054,"user":{"login":"gi0baro","id":5019985,"avatar_url":"https://avatars.githubusercontent.com/u/5019985?v=3","gravatar_id":"","url":"https://api.github.com/users/gi0baro","html_url":"https://github.com/gi0baro","followers_url":"https://api.github.com/users/gi0baro/followers","following_url":"https://api.github.com/users/gi0baro/following{/other_user}","gists_url":"https://api.github.com/users/gi0baro/gists{/gist_id}","starred_url":"https://api.github.com/users/gi0baro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gi0baro/subscriptions","organizations_url":"https://api.github.com/users/gi0baro/orgs","repos_url":"https://api.github.com/users/gi0baro/repos","events_url":"https://api.github.com/users/gi0baro/events{/privacy}","received_events_url":"https://api.github.com/users/gi0baro/received_events","type":"User","site_admin":false},"created_at":"2015-09-23T09:37:26Z","updated_at":"2015-09-23T09:37:26Z","body":"@stephenrauch ok, thank you"}}