-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Description
NetBox version
v3.5.4
Feature type
Change to existing functionality
Proposed functionality
Contact assignments table would include additional columns that correspond to contact fields:
- Title
- Phone
- Address
- Link
- Description
These fields would not be shown by default. Users could add them to the table via "Table Configuration" dialog.
Field definitions in NetboxTables can use accessor argument to refer to fields that span model relations. To for ContactAssignments table you could refer to contact fields. Something like this:
class ContactAssignmentTable(NetBoxTable):
...
contact_phone = tables.Column(
accessor=Accessor('contact__phone'),
verbose_name='Phone'
)
...
class Meta(NetBoxTable.Meta):
model = ContactAssignment
fields = (... 'contact_phone', ...)Use case
When looking up contacts for a site, the most often needed data is a persons phone number or email. Currently to access this information you need to click on each contact to see them. With this change one could see a list of phone numbers for all contacts assigned to a site and just start calling them down the list.
Database changes
No database changes required
External dependencies
None