Corrected the nominee ordering change.

- Legacy-Id: 15533
This commit is contained in:
Henrik Levkowetz 2018-10-08 10:26:00 +00:00
parent 64ba033a6c
commit 8a5e302745

View file

@ -121,7 +121,7 @@ class Nominee(models.Model):
class Meta:
verbose_name_plural = 'Nominees'
unique_together = ('email', 'nomcom')
ordering = ['-nomcom__group__acronym', 'email__address', ]
ordering = ['-nomcom__group__acronym', 'person__name', ]
def __unicode__(self):
if self.email.person and self.email.person.name:
@ -135,10 +135,6 @@ class Nominee(models.Model):
else:
return self.email.address
class Meta:
ordering = ['person__name', ]
class NomineePosition(models.Model):
position = ForeignKey('Position')