From the django documentation, what if I had
GENDER_CHOICES = ( (\'M\', \'Male\'), (\'F\', \'Female\'), ) class Person(models.Model): name = mod
Use get_gender_display():
get_gender_display()
return u"%s [%s]" % (self.name, self.get_gender_display())
Note, if you're not using Python 3+ you should be defining __unicode__ rather than __str__.
__unicode__
__str__