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

Remove obsolete to_csv() methods

This commit is contained in:
jeremystretch
2021-06-09 15:08:49 -04:00
parent 9d3cac43b7
commit 3ec6194a47
16 changed files with 1 additions and 531 deletions

View File

@ -91,16 +91,6 @@ class Service(PrimaryModel):
if not self.device and not self.virtual_machine:
raise ValidationError("A service must be associated with either a device or a virtual machine.")
def to_csv(self):
return (
self.device.name if self.device else None,
self.virtual_machine.name if self.virtual_machine else None,
self.name,
self.get_protocol_display(),
self.ports,
self.description,
)
@property
def port_list(self):
return array_to_string(self.ports)