Merge branch 'develop' into feature

This commit is contained in:
Arthur Hanson
2024-10-28 14:29:48 -07:00
39 changed files with 76608 additions and 87922 deletions

View File

@@ -162,7 +162,7 @@ class Cable(PrimaryModel):
if self.length is not None and not self.length_unit:
raise ValidationError(_("Must specify a unit when setting a cable length"))
if self._state.adding and (not self.a_terminations or not self.b_terminations):
if self._state.adding and self.pk is None and (not self.a_terminations or not self.b_terminations):
raise ValidationError(_("Must define A and B terminations when creating a new cable."))
if self._terminations_modified: