Use ssid for the string representation of WirelessLinks if available
This commit is contained in:

committed by
Jeremy Stretch

parent
85f40bcbe0
commit
fc482ed096
@@ -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