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

Closes #4324: Add CSV import view for services

This commit is contained in:
Jeremy Stretch
2020-03-06 16:33:43 -05:00
parent 2a5bf2a222
commit 9fa5004a35
7 changed files with 53 additions and 4 deletions

View File

@@ -1027,7 +1027,7 @@ class Service(ChangeLoggedModel, CustomFieldModel):
tags = TaggableManager(through=TaggedItem)
csv_headers = ['device', 'virtual_machine', 'name', 'protocol', 'description']
csv_headers = ['device', 'virtual_machine', 'name', 'protocol', 'port', 'description']
class Meta:
ordering = ('protocol', 'port', 'pk') # (protocol, port) may be non-unique