mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-20 02:06:42 -06:00
Clarify error message
This commit is contained in:
parent
c4304d059c
commit
a4ecb82330
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user