mirror of
				https://github.com/netbox-community/netbox.git
				synced 2024-05-10 07:54:54 +00:00 
			
		
		
		
	adds object change for contact assignment #13065
This commit is contained in:
		
				
					committed by
					
						
						Jeremy Stretch
					
				
			
			
				
	
			
			
			
						parent
						
							ffe4558ec5
						
					
				
				
					commit
					8143c6e03b
				
			@@ -136,3 +136,8 @@ class ContactAssignment(ChangeLoggedModel):
 | 
			
		||||
 | 
			
		||||
    def get_absolute_url(self):
 | 
			
		||||
        return reverse('tenancy:contact', args=[self.contact.pk])
 | 
			
		||||
 | 
			
		||||
    def to_objectchange(self, action):
 | 
			
		||||
        objectchange = super().to_objectchange(action)
 | 
			
		||||
        objectchange.related_object = self.object
 | 
			
		||||
        return objectchange
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user