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:
@@ -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}')
|
||||
|
Reference in New Issue
Block a user