issue 13022 resolved, ipaddress added into bulk_import form

This commit is contained in:
yash-pal1 2023-09-27 11:25:25 +05:30
parent 786f0cc7f3
commit 650783b085

View File

@ -507,10 +507,16 @@ class ServiceImportForm(NetBoxModelImportForm):
choices=ServiceProtocolChoices,
help_text=_('IP protocol')
)
ipaddresses = CSVModelMultipleChoiceField(
queryset=IPAddress.objects.all(),
required=False,
to_field_name='address',
help_text=_('IP Address'),
)
class Meta:
model = Service
fields = ('device', 'virtual_machine', 'name', 'protocol', 'ports', 'description', 'comments', 'tags')
fields = ('device', 'virtual_machine', 'ipaddresses', 'name', 'protocol', 'ports', 'description', 'comments', 'tags')
class L2VPNImportForm(NetBoxModelImportForm):