Added an ordering for Nominee objects.
- Legacy-Id: 12800
This commit is contained in:
parent
996f78135d
commit
0c784f9976
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue