Made the ballot type representation string more expressive, showing both name and doc_type.

- Legacy-Id: 14383
This commit is contained in:
Henrik Levkowetz 2017-12-01 09:27:28 +00:00
parent abb69338e2
commit ddfddb61ca

View file

@ -1007,7 +1007,7 @@ class BallotType(models.Model):
positions = models.ManyToManyField(BallotPositionName, blank=True)
def __unicode__(self):
return self.name
return u"%s: %s" % (self.name, self.doc_type.name)
class Meta:
ordering = ['order']