1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #162: Return Unicode from display_name()

This commit is contained in:
Jeremy Stretch
2016-07-12 10:45:07 -04:00
parent e1a6188580
commit 4c45e38aea
2 changed files with 4 additions and 4 deletions

View File

@ -375,7 +375,7 @@ class VLAN(CreatedUpdatedModel):
@property
def display_name(self):
return "{} ({})".format(self.vid, self.name)
return u"{} ({})".format(self.vid, self.name)
def get_status_class(self):
return STATUS_CHOICE_CLASSES[self.status]