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:
@ -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]
|
||||
|
Reference in New Issue
Block a user