summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@sonymobile.com>2013-11-15 16:40:29 +0900
committerDavid Pursehouse <david.pursehouse@sonymobile.com>2013-11-18 10:13:19 +0900
commit07c0190da89475b5492156c26376c7fa78225c91 (patch)
treed9d99375e6eaf6533201997283d1d7d2255b1982
parent7eb4019ae88be7d091e21aaee412821d57b93149 (diff)
downloadpygerrit-07c0190da89475b5492156c26376c7fa78225c91.tar.gz
Add user in the Approval object
Include the account information for the user who gave the approval. Change-Id: I3857c9913c38a5c5223111274314e107f4c81090
-rw-r--r--pygerrit/models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pygerrit/models.py b/pygerrit/models.py
index 9b764c1..17dc7ee 100644
--- a/pygerrit/models.py
+++ b/pygerrit/models.py
@@ -136,6 +136,7 @@ class Approval(object):
self.category = from_json(json_data, "type")
self.value = from_json(json_data, "value")
self.description = from_json(json_data, "description")
+ self.approver = Account.from_json(json_data, "by")
def __repr__(self):
return u"<Approval %s %s>" % (self.description, self.value)