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

add columns for each model table that has contacts

This commit is contained in:
Alex Gittings
2022-03-09 17:35:25 +00:00
parent 412c1df15a
commit 27dab262de
8 changed files with 53 additions and 14 deletions

View File

@@ -166,3 +166,6 @@ class ContactAssignment(ChangeLoggedModel):
if self.priority:
return f"{self.contact} ({self.get_priority_display()})"
return str(self.contact)
def get_absolute_url(self):
return reverse('tenancy:contact', args=[self.contact.pk])