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

Update connected_endpoint serializer field to support multiple objects

This commit is contained in:
jeremystretch
2022-05-13 11:04:38 -04:00
parent 3a461d0279
commit 4c51dbba80
5 changed files with 73 additions and 41 deletions

View File

@@ -45,7 +45,7 @@ class Mixins:
device=peer_device,
name='Peer Termination'
)
cable = Cable(termination_a=obj, b_terminations=[peer_obj], label='Cable 1')
cable = Cable(a_terminations=[obj], b_terminations=[peer_obj], label='Cable 1')
cable.save()
self.add_permissions(f'dcim.view_{self.model._meta.model_name}')