When the result of __str__ is a unicode object containing non-ascii characters,
str(instance) barfs with an encoding error.
status = models.CharField(max_length=2, choices=STATUS_CHOICES, default='N', verbose_name = _("Status"))
player = models.ForeignKey(User, verbose_name = _("Player"))
- def __str__(self):
+ def __unicode__(self):
return self.name
def get_absolute_url(self):
result = models.TextField(blank=True,verbose_name = _("Result"))
- def __str__(self):
+ def __unicode__(self):
return self.summary
def get_absolute_url(self):