mirror of
https://github.com/evennia/evennia.git
synced 2026-04-06 07:57:16 +02:00
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
|
||||
|
||||
def __str__(self):
|
||||
return "%s" % (self.get_name(),)
|
||||
return "%s" % (self.get_name(no_ansi=True),)
|
||||
|
||||
class Meta:
|
||||
ordering = ['-date_created', 'id']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue