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:
parent
756ac8dfe1
commit
9e5c297faa
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ class Object(models.Model):
|
||||||
return self.id == other.id
|
return self.id == other.id
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return "%s" % (self.get_name(),)
|
return "%s" % (self.get_name(no_ansi=True),)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
ordering = ['-date_created', 'id']
|
ordering = ['-date_created', 'id']
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue