Avoid validating cached terminations on Cable instance when loading serialized data #17832
Labels
netbox
status: accepted
This issue has been accepted for implementation
type: housekeeping
Changes to the application which do not directly impact the end user
Proposed Changes
This addresses a minor issue arising from the implementation of #17577:
Cable.clean()
should enforce that A & B terminations are defined for an instance only if its primary key is not yet defined. If a PK is already set, this implies that the cable has been populated from serialized data, and terminations will not be set on the instance.Justification
This change is needed to address netboxlabs/netbox-branching#155. It does not impact any functionality native to NetBox itself as far as I'm aware.
The text was updated successfully, but these errors were encountered: