From ced032bab108e8f29aade40afc60ceb3a70f1b5a Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Fri, 28 Jul 2023 09:10:42 -0400 Subject: [PATCH] Remove unsupported tags field added by NetBoxModelImportForm --- netbox/tenancy/forms/bulk_import.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/netbox/tenancy/forms/bulk_import.py b/netbox/tenancy/forms/bulk_import.py index 9ffa3c29f..0aec0e28f 100644 --- a/netbox/tenancy/forms/bulk_import.py +++ b/netbox/tenancy/forms/bulk_import.py @@ -90,19 +90,20 @@ class ContactAssignmentImportForm(NetBoxModelImportForm): queryset=ContentType.objects.all(), help_text=_("One or more assigned object types") ) - contact = CSVModelChoiceField( queryset=Contact.objects.all(), to_field_name='name', help_text=_('Assigned contact') ) - role = CSVModelChoiceField( queryset=ContactRole.objects.all(), to_field_name='name', help_text=_('Assigned role') ) + # Remove the tags field added by NetBoxModelImportForm (unsupported by ContactAssignment) + tags = None + class Meta: model = ContactAssignment fields = ('content_type', 'object_id', 'contact', 'priority', 'role')