1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fix redirection after creating FHRP group assignment

This commit is contained in:
jeremystretch
2021-11-19 10:42:13 -05:00
parent cd128e557c
commit b6fe613329

View File

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