mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Use ssid for the string representation of WirelessLinks if available
This commit is contained in:
committed by
Jeremy Stretch
parent
3b13cef0c8
commit
de57446f36
@ -190,7 +190,7 @@ class WirelessLink(WirelessAuthenticationBase, PrimaryModel):
|
||||
)
|
||||
|
||||
def __str__(self):
|
||||
return f'#{self.pk}'
|
||||
return self.ssid or f'#{self.pk}'
|
||||
|
||||
def get_absolute_url(self):
|
||||
return reverse('wireless:wirelesslink', args=[self.pk])
|
||||
|
Reference in New Issue
Block a user