From 080da68b6adfd9e9d93c4ec2af92e997dc26e6c8 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Tue, 28 Nov 2023 14:46:36 -0500 Subject: [PATCH] Fixes #14349: Fix custom validation support for DataSource --- netbox/core/models/data.py | 1 + 1 file changed, 1 insertion(+) diff --git a/netbox/core/models/data.py b/netbox/core/models/data.py index 54a43c7ef..9e41e8446 100644 --- a/netbox/core/models/data.py +++ b/netbox/core/models/data.py @@ -122,6 +122,7 @@ class DataSource(JobsMixin, PrimaryModel): ) def clean(self): + super().clean() # Ensure URL scheme matches selected type if self.type == DataSourceTypeChoices.LOCAL and self.url_scheme not in ('file', ''):