summaryrefslogtreecommitdiff
path: root/pygerrit/models.py
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@sonymobile.com>2013-10-18 09:20:28 +0900
committerDavid Pursehouse <david.pursehouse@sonymobile.com>2013-10-18 09:20:45 +0900
commit95acc328b3f5bbbe304f8ee2449d480e9fd71843 (patch)
tree157c494ec0df77c7dd8eb7ada155a8fc2c617b2f /pygerrit/models.py
parent52951c87c234bdb882ab4bf9a46544967c1ba27f (diff)
parentade9e87f2a6acc9de8e99505e17239914bf3b8ad (diff)
downloadpygerrit-95acc328b3f5bbbe304f8ee2449d480e9fd71843.tar.gz
Merge branch 'master' into internal
* master: Add myself to authors Add an authors list that contributors can add themselves to Fix indentation Reason is optional in abandon and restore changes Return sortKey from query result, to allow resuming query. Change-Id: I357d82fee44c47f960000b8db4f7c6d0d95a0993
Diffstat (limited to 'pygerrit/models.py')
-rw-r--r--pygerrit/models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pygerrit/models.py b/pygerrit/models.py
index ac9575a..22716ec 100644
--- a/pygerrit/models.py
+++ b/pygerrit/models.py
@@ -64,6 +64,8 @@ class Change(object):
self.subject = from_json(json_data, "subject")
self.url = from_json(json_data, "url")
self.owner = Account.from_json(json_data, "owner")
+ if 'sortKey' in json_data:
+ self.sortkey = from_json(json_data, "sortKey")
def __repr__(self):
return u"<Change %s, %s, %s>" % (self.number, self.project, self.branch)