mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Ensure cable is cached on terminating endpoints
This commit is contained in:
@ -44,7 +44,8 @@ class BaseCableConnectionForm(TenancyForm, NetBoxModelForm):
|
||||
])
|
||||
|
||||
if commit:
|
||||
CableTermination.objects.bulk_create(terminations)
|
||||
for ct in terminations:
|
||||
ct.save()
|
||||
else:
|
||||
instance.terminations = [
|
||||
*self.cleaned_data['a_terminations'],
|
||||
|
Reference in New Issue
Block a user