1
0
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:
kkthxbye-code
2023-03-16 21:01:03 +01:00
committed by Jeremy Stretch
parent 3b13cef0c8
commit de57446f36

View File

@ -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])