mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 20:12:00 -06:00
9892 add name to str
This commit is contained in:
parent
10cb3c2c3d
commit
8103ad3b9e
@ -59,7 +59,11 @@ class FHRPGroup(NetBoxModel):
|
||||
verbose_name = 'FHRP group'
|
||||
|
||||
def __str__(self):
|
||||
name = f'{self.name} {self.get_protocol_display()}: {self.group_id}'
|
||||
name = ''
|
||||
if self.name:
|
||||
name = f'{self.name} '
|
||||
|
||||
name += f'{self.get_protocol_display()}: {self.group_id}'
|
||||
|
||||
# Append the first assigned IP addresses (if any) to serve as an additional identifier
|
||||
if self.pk:
|
||||
|
Loading…
Reference in New Issue
Block a user