Added an ordering for Nominee objects.

- Legacy-Id: 12800
This commit is contained in:
Henrik Levkowetz 2017-02-09 21:07:22 +00:00
parent 996f78135d
commit 0c784f9976

View file

@ -114,6 +114,7 @@ class Nominee(models.Model):
class Meta:
verbose_name_plural = 'Nominees'
unique_together = ('email', 'nomcom')
ordering = ['-nomcom__group__acronym', 'email__address', ]
def __unicode__(self):
if self.email.person and self.email.person.name: