{"action":"created","comment":{"url":"https://api.github.com/repos/jlafon/PynamoDB/pulls/comments/88696301","pull_request_review_id":9262377,"id":88696301,"diff_hunk":"@@ -357,6 +361,52 @@ def update_item(self, attribute, value=None, action=None, conditional_operator=N\n                 setattr(self, name, attr.deserialize(value.get(ATTR_TYPE_MAP[attr.attr_type])))\n         return data\n \n+\n+    def update(self, attributes,  conditional_operator=None, **expected_values):","path":"pynamodb/models.py","position":23,"original_position":23,"commit_id":"d0eb3c8b2b1b15806ec0f30453f452daa5829f41","original_commit_id":"d0eb3c8b2b1b15806ec0f30453f452daa5829f41","user":{"login":"jmphilli","id":204245,"avatar_url":"https://avatars.githubusercontent.com/u/204245?v=3","gravatar_id":"","url":"https://api.github.com/users/jmphilli","html_url":"https://github.com/jmphilli","followers_url":"https://api.github.com/users/jmphilli/followers","following_url":"https://api.github.com/users/jmphilli/following{/other_user}","gists_url":"https://api.github.com/users/jmphilli/gists{/gist_id}","starred_url":"https://api.github.com/users/jmphilli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmphilli/subscriptions","organizations_url":"https://api.github.com/users/jmphilli/orgs","repos_url":"https://api.github.com/users/jmphilli/repos","events_url":"https://api.github.com/users/jmphilli/events{/privacy}","received_events_url":"https://api.github.com/users/jmphilli/received_events","type":"User","site_admin":false},"body":"cc @danielhochman ","created_at":"2016-11-18T17:04:16Z","updated_at":"2016-11-18T17:04:16Z","html_url":"https://github.com/jlafon/PynamoDB/pull/194#discussion_r88696301","pull_request_url":"https://api.github.com/repos/jlafon/PynamoDB/pulls/194","_links":{"self":{"href":"https://api.github.com/repos/jlafon/PynamoDB/pulls/comments/88696301"},"html":{"href":"https://github.com/jlafon/PynamoDB/pull/194#discussion_r88696301"},"pull_request":{"href":"https://api.github.com/repos/jlafon/PynamoDB/pulls/194"}}},"pull_request":{"url":"https://api.github.com/repos/jlafon/PynamoDB/pulls/194","id":92797446,"html_url":"https://github.com/jlafon/PynamoDB/pull/194","diff_url":"https://github.com/jlafon/PynamoDB/pull/194.diff","patch_url":"https://github.com/jlafon/PynamoDB/pull/194.patch","issue_url":"https://api.github.com/repos/jlafon/PynamoDB/issues/194","number":194,"state":"open","locked":false,"title":"Multiple attrs update","user":{"login":"yedpodtrzitko","id":162526,"avatar_url":"https://avatars.githubusercontent.com/u/162526?v=3","gravatar_id":"","url":"https://api.github.com/users/yedpodtrzitko","html_url":"https://github.com/yedpodtrzitko","followers_url":"https://api.github.com/users/yedpodtrzitko/followers","following_url":"https://api.github.com/users/yedpodtrzitko/following{/other_user}","gists_url":"https://api.github.com/users/yedpodtrzitko/gists{/gist_id}","starred_url":"https://api.github.com/users/yedpodtrzitko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yedpodtrzitko/subscriptions","organizations_url":"https://api.github.com/users/yedpodtrzitko/orgs","repos_url":"https://api.github.com/users/yedpodtrzitko/repos","events_url":"https://api.github.com/users/yedpodtrzitko/events{/privacy}","received_events_url":"https://api.github.com/users/yedpodtrzitko/received_events","type":"User","site_admin":false},"body":"this allows to update multiple attributes at once using `Model.update_item`.\r\n\r\nfixes #157 and #195","created_at":"2016-11-08T15:19:14Z","updated_at":"2016-11-18T17:05:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dbc0d72e40b4ed041304596cbbb364cf2bb1993a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/jlafon/PynamoDB/pulls/194/commits","review_comments_url":"https://api.github.com/repos/jlafon/PynamoDB/pulls/194/comments","review_comment_url":"https://api.github.com/repos/jlafon/PynamoDB/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jlafon/PynamoDB/issues/194/comments","statuses_url":"https://api.github.com/repos/jlafon/PynamoDB/statuses/d0eb3c8b2b1b15806ec0f30453f452daa5829f41","head":{"label":"yedpodtrzitko:multiple-attrs-update","ref":"multiple-attrs-update","sha":"d0eb3c8b2b1b15806ec0f30453f452daa5829f41","user":{"login":"yedpodtrzitko","id":162526,"avatar_url":"https://avatars.githubusercontent.com/u/162526?v=3","gravatar_id":"","url":"https://api.github.com/users/yedpodtrzitko","html_url":"https://github.com/yedpodtrzitko","followers_url":"https://api.github.com/users/yedpodtrzitko/followers","following_url":"https://api.github.com/users/yedpodtrzitko/following{/other_user}","gists_url":"https://api.github.com/users/yedpodtrzitko/gists{/gist_id}","starred_url":"https://api.github.com/users/yedpodtrzitko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yedpodtrzitko/subscriptions","organizations_url":"https://api.github.com/users/yedpodtrzitko/orgs","repos_url":"https://api.github.com/users/yedpodtrzitko/repos","events_url":"https://api.github.com/users/yedpodtrzitko/events{/privacy}","received_events_url":"https://api.github.com/users/yedpodtrzitko/received_events","type":"User","site_admin":false},"repo":{"id":72785568,"name":"PynamoDB","full_name":"yedpodtrzitko/PynamoDB","owner":{"login":"yedpodtrzitko","id":162526,"avatar_url":"https://avatars.githubusercontent.com/u/162526?v=3","gravatar_id":"","url":"https://api.github.com/users/yedpodtrzitko","html_url":"https://github.com/yedpodtrzitko","followers_url":"https://api.github.com/users/yedpodtrzitko/followers","following_url":"https://api.github.com/users/yedpodtrzitko/following{/other_user}","gists_url":"https://api.github.com/users/yedpodtrzitko/gists{/gist_id}","starred_url":"https://api.github.com/users/yedpodtrzitko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yedpodtrzitko/subscriptions","organizations_url":"https://api.github.com/users/yedpodtrzitko/orgs","repos_url":"https://api.github.com/users/yedpodtrzitko/repos","events_url":"https://api.github.com/users/yedpodtrzitko/events{/privacy}","received_events_url":"https://api.github.com/users/yedpodtrzitko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yedpodtrzitko/PynamoDB","description":"A pythonic interface to Amazon's DynamoDB","fork":true,"url":"https://api.github.com/repos/yedpodtrzitko/PynamoDB","forks_url":"https://api.github.com/repos/yedpodtrzitko/PynamoDB/forks","keys_url":"https://api.github.com/repos/yedpodtrzitko/PynamoDB/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yedpodtrzitko/PynamoDB/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yedpodtrzitko/PynamoDB/teams","hooks_url":"https://api.github.com/repos/yedpodtrzitko/PynamoDB/hooks","issue_events_url":"https://api.github.com/repos/yedpodtrzitko/PynamoDB/issues/events{/number}","events_url":"https://api.github.com/repos/yedpodtrzitko/PynamoDB/events","assignees_url":"https://api.github.com/repos/yedpodtrzitko/PynamoDB/assignees{/user}","branches_url":"https://api.github.com/repos/yedpodtrzitko/PynamoDB/branches{/branch}","tags_url":"https://api.github.com/repos/yedpodtrzitko/PynamoDB/tags","blobs_url":"https://api.github.com/repos/yedpodtrzitko/PynamoDB/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yedpodtrzitko/PynamoDB/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yedpodtrzitko/PynamoDB/git/refs{/sha}","trees_url":"https://api.github.com/repos/yedpodtrzitko/PynamoDB/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yedpodtrzitko/PynamoDB/statuses/{sha}","languages_url":"https://api.github.com/repos/yedpodtrzitko/PynamoDB/languages","stargazers_url":"https://api.github.com/repos/yedpodtrzitko/PynamoDB/stargazers","contributors_url":"https://api.github.com/repos/yedpodtrzitko/PynamoDB/contributors","subscribers_url":"https://api.github.com/repos/yedpodtrzitko/PynamoDB/subscribers","subscription_url":"https://api.github.com/repos/yedpodtrzitko/PynamoDB/subscription","commits_url":"https://api.github.com/repos/yedpodtrzitko/PynamoDB/commits{/sha}","git_commits_url":"https://api.github.com/repos/yedpodtrzitko/PynamoDB/git/commits{/sha}","comments_url":"https://api.github.com/repos/yedpodtrzitko/PynamoDB/comments{/number}","issue_comment_url":"https://api.github.com/repos/yedpodtrzitko/PynamoDB/issues/comments{/number}","contents_url":"https://api.github.com/repos/yedpodtrzitko/PynamoDB/contents/{+path}","compare_url":"https://api.github.com/repos/yedpodtrzitko/PynamoDB/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yedpodtrzitko/PynamoDB/merges","archive_url":"https://api.github.com/repos/yedpodtrzitko/PynamoDB/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yedpodtrzitko/PynamoDB/downloads","issues_url":"https://api.github.com/repos/yedpodtrzitko/PynamoDB/issues{/number}","pulls_url":"https://api.github.com/repos/yedpodtrzitko/PynamoDB/pulls{/number}","milestones_url":"https://api.github.com/repos/yedpodtrzitko/PynamoDB/milestones{/number}","notifications_url":"https://api.github.com/repos/yedpodtrzitko/PynamoDB/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yedpodtrzitko/PynamoDB/labels{/name}","releases_url":"https://api.github.com/repos/yedpodtrzitko/PynamoDB/releases{/id}","deployments_url":"https://api.github.com/repos/yedpodtrzitko/PynamoDB/deployments","created_at":"2016-11-03T20:50:28Z","updated_at":"2016-11-03T20:50:30Z","pushed_at":"2016-11-17T01:33:53Z","git_url":"git://github.com/yedpodtrzitko/PynamoDB.git","ssh_url":"git@github.com:yedpodtrzitko/PynamoDB.git","clone_url":"https://github.com/yedpodtrzitko/PynamoDB.git","svn_url":"https://github.com/yedpodtrzitko/PynamoDB","homepage":"http://pynamodb.readthedocs.org","size":922,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"devel"}},"base":{"label":"jlafon:devel","ref":"devel","sha":"ce741ab2129bde469942c002246e9240b4b38920","user":{"login":"jlafon","id":236514,"avatar_url":"https://avatars.githubusercontent.com/u/236514?v=3","gravatar_id":"","url":"https://api.github.com/users/jlafon","html_url":"https://github.com/jlafon","followers_url":"https://api.github.com/users/jlafon/followers","following_url":"https://api.github.com/users/jlafon/following{/other_user}","gists_url":"https://api.github.com/users/jlafon/gists{/gist_id}","starred_url":"https://api.github.com/users/jlafon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlafon/subscriptions","organizations_url":"https://api.github.com/users/jlafon/orgs","repos_url":"https://api.github.com/users/jlafon/repos","events_url":"https://api.github.com/users/jlafon/events{/privacy}","received_events_url":"https://api.github.com/users/jlafon/received_events","type":"User","site_admin":false},"repo":{"id":16058979,"name":"PynamoDB","full_name":"jlafon/PynamoDB","owner":{"login":"jlafon","id":236514,"avatar_url":"https://avatars.githubusercontent.com/u/236514?v=3","gravatar_id":"","url":"https://api.github.com/users/jlafon","html_url":"https://github.com/jlafon","followers_url":"https://api.github.com/users/jlafon/followers","following_url":"https://api.github.com/users/jlafon/following{/other_user}","gists_url":"https://api.github.com/users/jlafon/gists{/gist_id}","starred_url":"https://api.github.com/users/jlafon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlafon/subscriptions","organizations_url":"https://api.github.com/users/jlafon/orgs","repos_url":"https://api.github.com/users/jlafon/repos","events_url":"https://api.github.com/users/jlafon/events{/privacy}","received_events_url":"https://api.github.com/users/jlafon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jlafon/PynamoDB","description":"A pythonic interface to Amazon's DynamoDB","fork":false,"url":"https://api.github.com/repos/jlafon/PynamoDB","forks_url":"https://api.github.com/repos/jlafon/PynamoDB/forks","keys_url":"https://api.github.com/repos/jlafon/PynamoDB/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jlafon/PynamoDB/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jlafon/PynamoDB/teams","hooks_url":"https://api.github.com/repos/jlafon/PynamoDB/hooks","issue_events_url":"https://api.github.com/repos/jlafon/PynamoDB/issues/events{/number}","events_url":"https://api.github.com/repos/jlafon/PynamoDB/events","assignees_url":"https://api.github.com/repos/jlafon/PynamoDB/assignees{/user}","branches_url":"https://api.github.com/repos/jlafon/PynamoDB/branches{/branch}","tags_url":"https://api.github.com/repos/jlafon/PynamoDB/tags","blobs_url":"https://api.github.com/repos/jlafon/PynamoDB/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jlafon/PynamoDB/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jlafon/PynamoDB/git/refs{/sha}","trees_url":"https://api.github.com/repos/jlafon/PynamoDB/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jlafon/PynamoDB/statuses/{sha}","languages_url":"https://api.github.com/repos/jlafon/PynamoDB/languages","stargazers_url":"https://api.github.com/repos/jlafon/PynamoDB/stargazers","contributors_url":"https://api.github.com/repos/jlafon/PynamoDB/contributors","subscribers_url":"https://api.github.com/repos/jlafon/PynamoDB/subscribers","subscription_url":"https://api.github.com/repos/jlafon/PynamoDB/subscription","commits_url":"https://api.github.com/repos/jlafon/PynamoDB/commits{/sha}","git_commits_url":"https://api.github.com/repos/jlafon/PynamoDB/git/commits{/sha}","comments_url":"https://api.github.com/repos/jlafon/PynamoDB/comments{/number}","issue_comment_url":"https://api.github.com/repos/jlafon/PynamoDB/issues/comments{/number}","contents_url":"https://api.github.com/repos/jlafon/PynamoDB/contents/{+path}","compare_url":"https://api.github.com/repos/jlafon/PynamoDB/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jlafon/PynamoDB/merges","archive_url":"https://api.github.com/repos/jlafon/PynamoDB/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jlafon/PynamoDB/downloads","issues_url":"https://api.github.com/repos/jlafon/PynamoDB/issues{/number}","pulls_url":"https://api.github.com/repos/jlafon/PynamoDB/pulls{/number}","milestones_url":"https://api.github.com/repos/jlafon/PynamoDB/milestones{/number}","notifications_url":"https://api.github.com/repos/jlafon/PynamoDB/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jlafon/PynamoDB/labels{/name}","releases_url":"https://api.github.com/repos/jlafon/PynamoDB/releases{/id}","deployments_url":"https://api.github.com/repos/jlafon/PynamoDB/deployments","created_at":"2014-01-20T02:18:35Z","updated_at":"2016-11-18T14:46:29Z","pushed_at":"2016-11-18T07:04:52Z","git_url":"git://github.com/jlafon/PynamoDB.git","ssh_url":"git@github.com:jlafon/PynamoDB.git","clone_url":"https://github.com/jlafon/PynamoDB.git","svn_url":"https://github.com/jlafon/PynamoDB","homepage":"http://pynamodb.readthedocs.org","size":1267,"stargazers_count":279,"watchers_count":279,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":77,"mirror_url":null,"open_issues_count":48,"forks":77,"open_issues":48,"watchers":279,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/jlafon/PynamoDB/pulls/194"},"html":{"href":"https://github.com/jlafon/PynamoDB/pull/194"},"issue":{"href":"https://api.github.com/repos/jlafon/PynamoDB/issues/194"},"comments":{"href":"https://api.github.com/repos/jlafon/PynamoDB/issues/194/comments"},"review_comments":{"href":"https://api.github.com/repos/jlafon/PynamoDB/pulls/194/comments"},"review_comment":{"href":"https://api.github.com/repos/jlafon/PynamoDB/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jlafon/PynamoDB/pulls/194/commits"},"statuses":{"href":"https://api.github.com/repos/jlafon/PynamoDB/statuses/d0eb3c8b2b1b15806ec0f30453f452daa5829f41"}}}}
{"actor":{"display_login":"jmphilli"}}