diff options
author | Magnus Hagander | 2015-02-14 11:52:53 +0000 |
---|---|---|
committer | Magnus Hagander | 2015-02-14 11:52:53 +0000 |
commit | 4800696f20614bd2017d671a1b28df55f9952345 (patch) | |
tree | 221740164d589f1b686c96c20e29d42f536f8e5e /pgcommitfest/commitfest/models.py | |
parent | 685cc4147305079abc65953c99e0c2410dfb1270 (diff) |
Show full name in patch history, not just username
Noted by Stefan - we did this for everything except the patch history, so
let's make it consistent.
Diffstat (limited to 'pgcommitfest/commitfest/models.py')
-rw-r--r-- | pgcommitfest/commitfest/models.py | 4 |
1 files changed, 4 insertions, 0 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) |