From 968408622ebd6b1083c0d4d46f9ccb388e59ca10 Mon Sep 17 00:00:00 2001 From: "J.-S. Caux" <J.S.Caux@uva.nl> Date: Sun, 13 Jan 2019 19:01:40 +0100 Subject: [PATCH] Add ordering to Meta of PotentialFellow --- colleges/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/colleges/models.py b/colleges/models.py index 778b60bec..8f42ba603 100644 --- a/colleges/models.py +++ b/colleges/models.py @@ -85,6 +85,9 @@ class PotentialFellowship(models.Model): status = models.CharField(max_length=32, choices=POTENTIAL_FELLOWSHIP_STATUSES, default=POTENTIAL_FELLOWSHIP_IDENTIFIED) + class Meta: + ordering = ['profile__last_name'] + def __str__(self): return '%s, %s' % (self.profile.__str__(), self.get_status_display()) -- GitLab