added Meta class ordering by name to order speaker lists and dropdowns

This commit is contained in:
florapdx 2013-04-29 14:00:58 -07:00
parent f1b37c9833
commit 40b04240d4

View file

@ -27,12 +27,16 @@ class Speaker(models.Model):
editable = False editable = False
) )
class Meta:
ordering = ['name']
def __unicode__(self): def __unicode__(self):
if self.user: if self.user:
return self.name return self.name
else: else:
return "?" return "?"
def get_absolute_url(self): def get_absolute_url(self):
return reverse("speaker_edit") return reverse("speaker_edit")