summaryrefslogtreecommitdiff
path: root/pgcommitfest/commitfest
diff options
context:
space:
mode:
Diffstat (limited to 'pgcommitfest/commitfest')
-rw-r--r--pgcommitfest/commitfest/models.py4
-rw-r--r--pgcommitfest/commitfest/templates/patch.html2
2 files changed, 5 insertions, 1 deletions
diff --git a/pgcommitfest/commitfest/models.py b/pgcommitfest/commitfest/models.py
index 124af72..e1b83b4 100644
--- a/pgcommitfest/commitfest/models.py
+++ b/pgcommitfest/commitfest/models.py
@@ -183,6 +183,10 @@ class PatchHistory(models.Model):
by = models.ForeignKey(User, blank=False, null=False)
what = models.CharField(max_length=500, null=False, blank=False)
+ @property
+ def by_string(self):
+ return "%s %s (%s)" % (self.by.first_name, self.by.last_name, self.by.username)
+
def __unicode__(self):
return "%s - %s" % (self.patch.name, self.date)
diff --git a/pgcommitfest/commitfest/templates/patch.html b/pgcommitfest/commitfest/templates/patch.html
index 97ac9b5..ab66df4 100644
--- a/pgcommitfest/commitfest/templates/patch.html
+++ b/pgcommitfest/commitfest/templates/patch.html
@@ -95,7 +95,7 @@
{%for h in patch.history %}
<tr>
<td style="white-space: nowrap;">{{h.date}}</td>
- <td style="white-space: nowrap;">{{h.by}}</td>
+ <td style="white-space: nowrap;">{{h.by_string}}</td>
<td width="99%">{{h.what}}</td>
</tr>
{%endfor%}