From a5a275ef5a9c47144db1d7abb4e3248e853bd455 Mon Sep 17 00:00:00 2001 From: Josh Washburne Date: Thu, 4 Jan 2018 16:29:29 -0500 Subject: [PATCH] Add default Artist ordering. --- savepointradio/radio/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/savepointradio/radio/models.py b/savepointradio/radio/models.py index 97998ad..e1523f4 100644 --- a/savepointradio/radio/models.py +++ b/savepointradio/radio/models.py @@ -24,6 +24,9 @@ class Artist(Disableable, Publishable, Timestampable, models.Model): first_name = models.CharField(_('first name'), max_length=127, blank=True) last_name = models.CharField(_('last name'), max_length=127, blank=True) + class Meta: + ordering = ('first_name', 'alias',) + @property def full_name(self): if not self.alias: