From a29abe4803b115d4c96537c888b91ce70d25074d Mon Sep 17 00:00:00 2001 From: Ethan Nguyen Date: Tue, 9 Nov 2021 14:24:52 -0600 Subject: [PATCH] feat(destinations): sort colleges on user list page --- tjdests/apps/destinations/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tjdests/apps/destinations/models.py b/tjdests/apps/destinations/models.py index 37a217b..f285c40 100644 --- a/tjdests/apps/destinations/models.py +++ b/tjdests/apps/destinations/models.py @@ -71,6 +71,9 @@ class Decision(models.Model): last_modified = models.DateTimeField(auto_now=True) + class Meta: + ordering = ["admission_status", "college"] + def __str__(self): return ( f"{self.college.name} - {self.get_decision_type_display()}: "