From 317a8e0a2180f8d3ead8243ca522427b4145cbad Mon Sep 17 00:00:00 2001 From: Ethan Nguyen Date: Fri, 23 Apr 2021 10:49:42 -0400 Subject: [PATCH] feat(destinations): order colleges by name --- 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 1eb238f..ce90e43 100644 --- a/tjdests/apps/destinations/models.py +++ b/tjdests/apps/destinations/models.py @@ -11,6 +11,9 @@ class College(models.Model): def __str__(self): return f"{self.name} - {self.location} ({self.ceeb_code})" + class Meta: + ordering = ["name"] + class Decision(models.Model): """Represents a college decision."""