From 00d8e93a246240a768798ce7d42d7b0aea4fa22f Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 17 2015 11:55:39 +0000 Subject: Include the user's fullname in the JSON representation of an issue --- diff --git a/progit/lib/model.py b/progit/lib/model.py index 978d85e..ef6d761 100644 --- a/progit/lib/model.py +++ b/progit/lib/model.py @@ -340,6 +340,7 @@ class Issue(BASE): 'date_created': self.date_created.strftime('%s'), 'user': { 'name': self.user.user, + 'fullname': comment.user.fullname, 'emails': [email.email for email in self.user.emails], }, 'private': self.private, @@ -354,6 +355,7 @@ class Issue(BASE): 'date_created': comment.date_created.strftime('%s'), 'user': { 'name': comment.user.user, + 'fullname': comment.user.fullname, 'emails': [email.email for email in comment.user.emails], } }