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:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user