summaryrefslogtreecommitdiff
path: root/pgcommitfest/commitfest/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'pgcommitfest/commitfest/models.py')
-rw-r--r--pgcommitfest/commitfest/models.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pgcommitfest/commitfest/models.py b/pgcommitfest/commitfest/models.py
index 21fe733..d60a1aa 100644
--- a/pgcommitfest/commitfest/models.py
+++ b/pgcommitfest/commitfest/models.py
@@ -19,6 +19,9 @@ class Committer(models.Model):
def fullname(self):
return "%s %s (%s)" % (self.user.first_name, self.user.last_name, self.user.username)
+ class Meta:
+ ordering = ('user__last_name', 'user__first_name')
+
class CommitFest(models.Model):
STATUS_FUTURE=1
STATUS_OPEN=2