Clarify error message

This commit is contained in:
Jeremy Stretch 2025-02-24 09:59:20 -05:00
parent c4304d059c
commit a4ecb82330

View File

@ -349,9 +349,8 @@ class CircuitTermination(
def clean(self): def clean(self):
super().clean() super().clean()
# Must define either site *or* provider network
if self.termination is None: if self.termination is None:
raise ValidationError(_("A circuit termination must attach to termination.")) raise ValidationError(_("A circuit termination must attach to a terminating object."))
def save(self, *args, **kwargs): def save(self, *args, **kwargs):
# Cache objects associated with the terminating object (for filtering) # Cache objects associated with the terminating object (for filtering)