{"action":"opened","issue":{"url":"https://api.github.com/repos/coleifer/peewee/issues/1407","repository_url":"https://api.github.com/repos/coleifer/peewee","labels_url":"https://api.github.com/repos/coleifer/peewee/issues/1407/labels{/name}","comments_url":"https://api.github.com/repos/coleifer/peewee/issues/1407/comments","events_url":"https://api.github.com/repos/coleifer/peewee/issues/1407/events","html_url":"https://github.com/coleifer/peewee/issues/1407","id":284236842,"number":1407,"title":"insert_many to return primary ID's","user":{"login":"vadimkantorov","id":1041752,"avatar_url":"https://avatars0.githubusercontent.com/u/1041752?v=4","gravatar_id":"","url":"https://api.github.com/users/vadimkantorov","html_url":"https://github.com/vadimkantorov","followers_url":"https://api.github.com/users/vadimkantorov/followers","following_url":"https://api.github.com/users/vadimkantorov/following{/other_user}","gists_url":"https://api.github.com/users/vadimkantorov/gists{/gist_id}","starred_url":"https://api.github.com/users/vadimkantorov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vadimkantorov/subscriptions","organizations_url":"https://api.github.com/users/vadimkantorov/orgs","repos_url":"https://api.github.com/users/vadimkantorov/repos","events_url":"https://api.github.com/users/vadimkantorov/events{/privacy}","received_events_url":"https://api.github.com/users/vadimkantorov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-22T19:35:50Z","updated_at":"2017-12-22T19:35:50Z","closed_at":null,"author_association":"NONE","body":"I'd like to bulk insert new Users in a table (peewee 2.10.2).\r\n\r\nI'm doing `User.insert_many([dict(display = 'u1'), dict(display = 'u2')]).execute()`. However, this returned boolean. How do I get primary id's for the newly inserted objects?\r\n\r\nI saw in the docs that `insert(...).execute()` will return an id, so I expected the bulk version does the same.\r\n\r\nThanks!\r\n\r\n"}}
{"actor":{"display_login":"vadimkantorov"}}