mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-25 01:48:38 -06:00
Fix redirection after creating FHRP group assignment
This commit is contained in:
parent
cd128e557c
commit
b6fe613329
@ -93,3 +93,9 @@ class FHRPGroupAssignment(ChangeLoggedModel):
|
||||
|
||||
def __str__(self):
|
||||
return f'{self.interface}: {self.group} ({self.priority})'
|
||||
|
||||
def get_absolute_url(self):
|
||||
# Used primarily for redirection after creating a new assignment
|
||||
if self.interface:
|
||||
return self.interface.get_absolute_url()
|
||||
return None
|
||||
|
Loading…
Reference in New Issue
Block a user