Add default Artist ordering.

This commit is contained in:
Josh Washburne 2018-01-04 16:29:29 -05:00
parent 4555de206a
commit a5a275ef5a

View file

@ -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: