Don't return the ansi-fied version of the Object's name on its __str__() method as this is used in the admin interface and makes nasty looking garbage appear.

This commit is contained in:
Greg Taylor 2007-05-18 14:07:57 +00:00
parent 756ac8dfe1
commit 9e5c297faa

View file

@ -59,7 +59,7 @@ class Object(models.Model):
return self.id == other.id
def __str__(self):
return "%s" % (self.get_name(),)
return "%s" % (self.get_name(no_ansi=True),)
class Meta:
ordering = ['-date_created', 'id']