mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-20 02:06:42 -06:00
Fixes #8661: Fix ValueError exception when trying to connect a cable
This commit is contained in:
parent
92c4e5bfaf
commit
bcdd006dd5
@ -148,6 +148,7 @@ Where it is desired to limit the range of available VLANs within a group, users
|
|||||||
|
|
||||||
* [#8655](https://github.com/netbox-community/netbox/issues/8655) - Fix AttributeError when viewing cabled interfaces
|
* [#8655](https://github.com/netbox-community/netbox/issues/8655) - Fix AttributeError when viewing cabled interfaces
|
||||||
* [#8659](https://github.com/netbox-community/netbox/issues/8659) - Fix display of multi-object custom fields after deleting related object
|
* [#8659](https://github.com/netbox-community/netbox/issues/8659) - Fix display of multi-object custom fields after deleting related object
|
||||||
|
* [#8661](https://github.com/netbox-community/netbox/issues/8661) - Fix ValueError exception when trying to connect a cable
|
||||||
|
|
||||||
### Other Changes
|
### Other Changes
|
||||||
|
|
||||||
|
@ -2768,6 +2768,10 @@ class CableCreateView(generic.ObjectEditView):
|
|||||||
|
|
||||||
return super().dispatch(request, *args, **kwargs)
|
return super().dispatch(request, *args, **kwargs)
|
||||||
|
|
||||||
|
def get_object(self, **kwargs):
|
||||||
|
# Always return a new instance
|
||||||
|
return self.queryset.model()
|
||||||
|
|
||||||
def alter_object(self, obj, request, url_args, url_kwargs):
|
def alter_object(self, obj, request, url_args, url_kwargs):
|
||||||
termination_a_type = url_kwargs.get('termination_a_type')
|
termination_a_type = url_kwargs.get('termination_a_type')
|
||||||
termination_a_id = url_kwargs.get('termination_a_id')
|
termination_a_id = url_kwargs.get('termination_a_id')
|
||||||
|
Loading…
Reference in New Issue
Block a user